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

Side by Side Diff: extensions/test/test_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 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/test/test_extensions_client.h" 5 #include "extensions/test/test_extensions_client.h"
6 6
7 #include "extensions/common/api/generated_schemas.h" 7 #include "extensions/common/api/generated_schemas.h"
8 #include "extensions/common/common_manifest_handlers.h" 8 #include "extensions/common/common_manifest_handlers.h"
9 #include "extensions/common/features/api_feature.h" 9 #include "extensions/common/features/api_feature.h"
10 #include "extensions/common/features/base_feature_provider.h" 10 #include "extensions/common/features/base_feature_provider.h"
11 #include "extensions/common/features/feature_provider.h" 11 #include "extensions/common/features/feature_provider.h"
12 #include "extensions/common/features/json_feature_provider_source.h" 12 #include "extensions/common/features/json_feature_provider_source.h"
13 #include "extensions/common/features/manifest_feature.h" 13 #include "extensions/common/features/manifest_feature.h"
14 #include "extensions/common/features/permission_feature.h" 14 #include "extensions/common/features/permission_feature.h"
15 #include "extensions/common/manifest_handler.h" 15 #include "extensions/common/manifest_handler.h"
16 #include "extensions/common/permissions/extensions_api_permissions.h" 16 #include "extensions/common/permissions/extensions_api_permissions.h"
17 #include "extensions/common/permissions/permissions_info.h" 17 #include "extensions/common/permissions/permissions_info.h"
18 #include "extensions/common/url_pattern_set.h" 18 #include "extensions/common/url_pattern_set.h"
19 #include "extensions/test/test_permission_message_provider.h" 19 #include "extensions/test/test_permission_message_provider.h"
20 #include "grit/extensions_resources.h" 20 #include "grit/extensions_resources.h"
21 21
22 namespace extensions { 22 namespace extensions {
23 23
24 namespace { 24 namespace {
25 25
26 const char kWebstoreBaseURL[] = "https://chrome.google.com/webstore";
27 const char kWebstoreUpdateURL[] =
28 "https://clients2.google.com/service/update2/crx";
29
26 template <class FeatureClass> 30 template <class FeatureClass>
27 SimpleFeature* CreateFeature() { 31 SimpleFeature* CreateFeature() {
28 return new FeatureClass; 32 return new FeatureClass;
29 } 33 }
30 34
31 } // namespace 35 } // namespace
32 36
33 TestExtensionsClient::TestExtensionsClient() { 37 TestExtensionsClient::TestExtensionsClient() {
34 } 38 }
35 39
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 return core_api::GeneratedSchemas::Get(name); 139 return core_api::GeneratedSchemas::Get(name);
136 } 140 }
137 141
138 void TestExtensionsClient::RegisterAPISchemaResources(ExtensionAPI* api) const { 142 void TestExtensionsClient::RegisterAPISchemaResources(ExtensionAPI* api) const {
139 } 143 }
140 144
141 bool TestExtensionsClient::ShouldSuppressFatalErrors() const { 145 bool TestExtensionsClient::ShouldSuppressFatalErrors() const {
142 return true; 146 return true;
143 } 147 }
144 148
149 std::string TestExtensionsClient::GetWebstoreBaseURL() const {
150 return kWebstoreBaseURL;
151 }
152
153 std::string TestExtensionsClient::GetWebstoreUpdateURL() const {
154 return kWebstoreUpdateURL;
155 }
156
157 bool TestExtensionsClient::IsBlacklistUpdateURL(const GURL& url) const {
158 return true;
159 }
160
145 } // namespace extensions 161 } // namespace extensions
OLDNEW
« extensions/common/extension_urls.h ('K') | « extensions/test/test_extensions_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698