Browse Source

refactor: use GetAddedFileSystems() in IsDevToolsFileSystemAdded()

Charles Kerr 3 weeks ago
parent
commit
1713f1cd05
1 changed files with 2 additions and 2 deletions
  1. 2 2
      shell/browser/api/electron_api_web_contents.cc

+ 2 - 2
shell/browser/api/electron_api_web_contents.cc

@@ -693,8 +693,8 @@ std::map<std::string, std::string> GetAddedFileSystemPaths(
 }
 
 bool IsDevToolsFileSystemAdded(content::WebContents* web_contents,
-                               const std::string& file_system_path) {
-  return GetAddedFileSystemPaths(web_contents).contains(file_system_path);
+                               const std::string_view file_system_path) {
+  return GetAddedFileSystems(web_contents).contains(file_system_path);
 }
 
 content::RenderFrameHost* GetRenderFrameHost(