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

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

Issue 1226353004: Generate all extension schema namespaces as "api" and instead vary the generated bundle names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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 "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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 return hosts; 144 return hosts;
145 } 145 }
146 146
147 bool TestExtensionsClient::IsScriptableURL(const GURL& url, 147 bool TestExtensionsClient::IsScriptableURL(const GURL& url,
148 std::string* error) const { 148 std::string* error) const {
149 return true; 149 return true;
150 } 150 }
151 151
152 bool TestExtensionsClient::IsAPISchemaGenerated( 152 bool TestExtensionsClient::IsAPISchemaGenerated(
153 const std::string& name) const { 153 const std::string& name) const {
154 return core_api::GeneratedSchemas::IsGenerated(name); 154 return api::GeneratedSchemas::IsGenerated(name);
155 } 155 }
156 156
157 base::StringPiece TestExtensionsClient::GetAPISchema( 157 base::StringPiece TestExtensionsClient::GetAPISchema(
158 const std::string& name) const { 158 const std::string& name) const {
159 return core_api::GeneratedSchemas::Get(name); 159 return api::GeneratedSchemas::Get(name);
160 } 160 }
161 161
162 void TestExtensionsClient::RegisterAPISchemaResources(ExtensionAPI* api) const { 162 void TestExtensionsClient::RegisterAPISchemaResources(ExtensionAPI* api) const {
163 } 163 }
164 164
165 bool TestExtensionsClient::ShouldSuppressFatalErrors() const { 165 bool TestExtensionsClient::ShouldSuppressFatalErrors() const {
166 return true; 166 return true;
167 } 167 }
168 168
169 void TestExtensionsClient::RecordDidSuppressFatalError() { 169 void TestExtensionsClient::RecordDidSuppressFatalError() {
(...skipping 14 matching lines...) Expand all
184 std::set<base::FilePath> TestExtensionsClient::GetBrowserImagePaths( 184 std::set<base::FilePath> TestExtensionsClient::GetBrowserImagePaths(
185 const Extension* extension) { 185 const Extension* extension) {
186 std::set<base::FilePath> result = 186 std::set<base::FilePath> result =
187 ExtensionsClient::GetBrowserImagePaths(extension); 187 ExtensionsClient::GetBrowserImagePaths(extension);
188 for (auto filter : browser_image_filters_) 188 for (auto filter : browser_image_filters_)
189 filter->Filter(extension, &result); 189 filter->Filter(extension, &result);
190 return result; 190 return result;
191 } 191 }
192 192
193 } // namespace extensions 193 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/shell/common/shell_extensions_client.cc ('k') | tools/json_schema_compiler/compiler.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698