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

Side by Side Diff: apps/shell/common/shell_extensions_client.cc

Issue 296133011: Move extension API schema registration to ExtensionsClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ifdefs =( Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "apps/shell/common/shell_extensions_client.h" 5 #include "apps/shell/common/shell_extensions_client.h"
6 6
7 #include "apps/shell/common/api/generated_schemas.h" 7 #include "apps/shell/common/api/generated_schemas.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "extensions/common/api/generated_schemas.h" 10 #include "extensions/common/api/generated_schemas.h"
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 200
201 base::StringPiece ShellExtensionsClient::GetAPISchema( 201 base::StringPiece ShellExtensionsClient::GetAPISchema(
202 const std::string& name) const { 202 const std::string& name) const {
203 // Schema for chrome.shell APIs. 203 // Schema for chrome.shell APIs.
204 if (apps::shell_api::GeneratedSchemas::IsGenerated(name)) 204 if (apps::shell_api::GeneratedSchemas::IsGenerated(name))
205 return apps::shell_api::GeneratedSchemas::Get(name); 205 return apps::shell_api::GeneratedSchemas::Get(name);
206 206
207 return extensions::core_api::GeneratedSchemas::Get(name); 207 return extensions::core_api::GeneratedSchemas::Get(name);
208 } 208 }
209 209
210 void ShellExtensionsClient::RegisterAPISchemaResources(
211 extensions::ExtensionAPI* api) const {
212 }
213
210 bool ShellExtensionsClient::ShouldSuppressFatalErrors() const { return true; } 214 bool ShellExtensionsClient::ShouldSuppressFatalErrors() const { return true; }
211 215
212 } // namespace apps 216 } // namespace apps
OLDNEW
« no previous file with comments | « apps/shell/common/shell_extensions_client.h ('k') | chrome/common/extensions/chrome_extensions_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698