Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Unified Diff: extensions/shell/common/shell_extensions_client.cc

Issue 2493053002: [extensions] Stop parsing webstore urls so much (Closed)
Patch Set: rdevlin review Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/shell/common/shell_extensions_client.h ('k') | extensions/test/test_extensions_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/shell/common/shell_extensions_client.cc
diff --git a/extensions/shell/common/shell_extensions_client.cc b/extensions/shell/common/shell_extensions_client.cc
index 0e87dae087b9a46890ab0e05a303e74bfd0a2f99..0d2557a75ad8e28f050c6c66f863fd605f6b10dd 100644
--- a/extensions/shell/common/shell_extensions_client.cc
+++ b/extensions/shell/common/shell_extensions_client.cc
@@ -76,8 +76,8 @@ base::LazyInstance<ShellPermissionMessageProvider>
} // namespace
ShellExtensionsClient::ShellExtensionsClient()
- : extensions_api_permissions_(ExtensionsAPIPermissions()) {
-}
+ : extensions_api_permissions_(ExtensionsAPIPermissions()),
+ webstore_update_url_(extension_urls::kChromeWebstoreUpdateURL) {}
ShellExtensionsClient::~ShellExtensionsClient() {
}
@@ -185,8 +185,8 @@ std::string ShellExtensionsClient::GetWebstoreBaseURL() const {
return extension_urls::kChromeWebstoreBaseURL;
}
-std::string ShellExtensionsClient::GetWebstoreUpdateURL() const {
- return extension_urls::kChromeWebstoreUpdateURL;
+const GURL& ShellExtensionsClient::GetWebstoreUpdateURL() const {
+ return webstore_update_url_;
}
bool ShellExtensionsClient::IsBlacklistUpdateURL(const GURL& url) const {
« no previous file with comments | « extensions/shell/common/shell_extensions_client.h ('k') | extensions/test/test_extensions_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698