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

Side by Side 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: Dedupe constants, rename GetExtensionGalleryURL, cleanup comments. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "extensions/shell/common/shell_extensions_client.h" 5 #include "extensions/shell/common/shell_extensions_client.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "extensions/common/api/generated_schemas.h" 9 #include "extensions/common/api/generated_schemas.h"
10 #include "extensions/common/api/sockets/sockets_manifest_handler.h" 10 #include "extensions/common/api/sockets/sockets_manifest_handler.h"
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 } 186 }
187 187
188 void ShellExtensionsClient::RegisterAPISchemaResources( 188 void ShellExtensionsClient::RegisterAPISchemaResources(
189 ExtensionAPI* api) const { 189 ExtensionAPI* api) const {
190 } 190 }
191 191
192 bool ShellExtensionsClient::ShouldSuppressFatalErrors() const { 192 bool ShellExtensionsClient::ShouldSuppressFatalErrors() const {
193 return true; 193 return true;
194 } 194 }
195 195
196 std::string ShellExtensionsClient::GetWebstoreBaseURL() const {
197 return extension_urls::kChromeWebstoreBaseURL;
198 }
199
200 std::string ShellExtensionsClient::GetWebstoreUpdateURL() const {
201 return extension_urls::kChromeWebstoreUpdateURL;
202 }
203
204 bool ShellExtensionsClient::IsBlacklistUpdateURL(const GURL& url) const {
205 // TODO(rockot): Maybe we want to do something else here. For now we accept
206 // any URL as a blacklist URL because we don't really care.
207 return true;
208 }
209
196 } // namespace extensions 210 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698