Skip to content
Snippets Groups Projects
Unverified Commit f1c3e506 authored by Charles Kerr's avatar Charles Kerr
Browse files

fix: performance-no-automatic-move in GetBundleResourcePath()

remove `const` from request_relative_path.

Warning fixed by this commit:

electron/shell/browser/extensions/electron_extensions_browser_client.cc:187:10: warning: constness of 'request_relative_path' prevents automatic move [performance-no-automatic-move]
parent 81b2f7d2
No related merge requests found
......@@ -174,7 +174,7 @@ base::FilePath ElectronExtensionsBrowserClient::GetBundleResourcePath(
if (!chrome_resources_path.IsParent(extension_resources_path))
return base::FilePath();
const base::FilePath request_relative_path =
base::FilePath request_relative_path =
extensions::file_util::ExtensionURLToRelativeFilePath(request.url);
if (!ExtensionsBrowserClient::Get()
->GetComponentExtensionResourceManager()
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment