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

Side by Side Diff: extensions/test/test_extensions_client.cc

Issue 2266673002: [Extensions] Remove mechanism for non-generated schemas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lazyboys Created 4 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
« no previous file with comments | « extensions/test/test_extensions_client.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "extensions/common/api/generated_schemas.h" 8 #include "extensions/common/api/generated_schemas.h"
9 #include "extensions/common/common_manifest_handlers.h" 9 #include "extensions/common/common_manifest_handlers.h"
10 #include "extensions/common/extension_urls.h" 10 #include "extensions/common/extension_urls.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 bool TestExtensionsClient::IsAPISchemaGenerated( 131 bool TestExtensionsClient::IsAPISchemaGenerated(
132 const std::string& name) const { 132 const std::string& name) const {
133 return api::GeneratedSchemas::IsGenerated(name); 133 return api::GeneratedSchemas::IsGenerated(name);
134 } 134 }
135 135
136 base::StringPiece TestExtensionsClient::GetAPISchema( 136 base::StringPiece TestExtensionsClient::GetAPISchema(
137 const std::string& name) const { 137 const std::string& name) const {
138 return api::GeneratedSchemas::Get(name); 138 return api::GeneratedSchemas::Get(name);
139 } 139 }
140 140
141 void TestExtensionsClient::RegisterAPISchemaResources(ExtensionAPI* api) const {
142 }
143
144 bool TestExtensionsClient::ShouldSuppressFatalErrors() const { 141 bool TestExtensionsClient::ShouldSuppressFatalErrors() const {
145 return true; 142 return true;
146 } 143 }
147 144
148 void TestExtensionsClient::RecordDidSuppressFatalError() { 145 void TestExtensionsClient::RecordDidSuppressFatalError() {
149 } 146 }
150 147
151 std::string TestExtensionsClient::GetWebstoreBaseURL() const { 148 std::string TestExtensionsClient::GetWebstoreBaseURL() const {
152 return extension_urls::kChromeWebstoreBaseURL; 149 return extension_urls::kChromeWebstoreBaseURL;
153 } 150 }
154 151
155 std::string TestExtensionsClient::GetWebstoreUpdateURL() const { 152 std::string TestExtensionsClient::GetWebstoreUpdateURL() const {
156 return extension_urls::kChromeWebstoreUpdateURL; 153 return extension_urls::kChromeWebstoreUpdateURL;
157 } 154 }
158 155
159 bool TestExtensionsClient::IsBlacklistUpdateURL(const GURL& url) const { 156 bool TestExtensionsClient::IsBlacklistUpdateURL(const GURL& url) const {
160 return true; 157 return true;
161 } 158 }
162 159
163 std::set<base::FilePath> TestExtensionsClient::GetBrowserImagePaths( 160 std::set<base::FilePath> TestExtensionsClient::GetBrowserImagePaths(
164 const Extension* extension) { 161 const Extension* extension) {
165 std::set<base::FilePath> result = 162 std::set<base::FilePath> result =
166 ExtensionsClient::GetBrowserImagePaths(extension); 163 ExtensionsClient::GetBrowserImagePaths(extension);
167 for (auto* filter : browser_image_filters_) 164 for (auto* filter : browser_image_filters_)
168 filter->Filter(extension, &result); 165 filter->Filter(extension, &result);
169 return result; 166 return result;
170 } 167 }
171 168
172 } // namespace extensions 169 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/test/test_extensions_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698