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

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

Issue 575113002: Move Webstore URL concepts to //extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months 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
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 be135c78e01e113689919d64e2c10ca0f4a043d7..1b8e34c86712b83c375570710d25992fd2d3c51f 100644
--- a/extensions/shell/common/shell_extensions_client.cc
+++ b/extensions/shell/common/shell_extensions_client.cc
@@ -26,6 +26,10 @@ namespace extensions {
namespace {
+const char kWebstoreBaseURL[] = "https://chrome.google.com/webstore";
+const char kWebstoreUpdateURL[] =
+ "https://clients2.google.com/service/update2/crx";
+
template <class FeatureClass>
SimpleFeature* CreateFeature() {
return new FeatureClass;
@@ -193,4 +197,18 @@ bool ShellExtensionsClient::ShouldSuppressFatalErrors() const {
return true;
}
+std::string ShellExtensionsClient::GetWebstoreBaseURL() const {
+ return kWebstoreBaseURL;
+}
+
+std::string ShellExtensionsClient::GetWebstoreUpdateURL() const {
+ return kWebstoreUpdateURL;
+}
+
+bool ShellExtensionsClient::IsBlacklistUpdateURL(const GURL& url) const {
+ // TODO(rockot): Maybe we want to do something else here. For now we accept
+ // any URL as a blacklist URL because we don't really care.
+ return true;
+}
+
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698