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

Side by Side Diff: extensions/common/extension_api.cc

Issue 268823002: Re-land: Rename experimental.accessibility to accessibilityPrivate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 "extensions/common/extension_api.h" 5 #include "extensions/common/extension_api.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 ExtensionAPI::~ExtensionAPI() { 223 ExtensionAPI::~ExtensionAPI() {
224 } 224 }
225 225
226 void ExtensionAPI::InitDefaultConfiguration() { 226 void ExtensionAPI::InitDefaultConfiguration() {
227 const char* names[] = {"api", "manifest", "permission"}; 227 const char* names[] = {"api", "manifest", "permission"};
228 for (size_t i = 0; i < arraysize(names); ++i) 228 for (size_t i = 0; i < arraysize(names); ++i)
229 RegisterDependencyProvider(names[i], FeatureProvider::GetByName(names[i])); 229 RegisterDependencyProvider(names[i], FeatureProvider::GetByName(names[i]));
230 230
231 // Schemas to be loaded from resources. 231 // Schemas to be loaded from resources.
232 CHECK(unloaded_schemas_.empty()); 232 CHECK(unloaded_schemas_.empty());
233 RegisterSchemaResource("accessibilityPrivate",
234 IDR_EXTENSION_API_JSON_ACCESSIBILITYPRIVATE);
233 RegisterSchemaResource("app", IDR_EXTENSION_API_JSON_APP); 235 RegisterSchemaResource("app", IDR_EXTENSION_API_JSON_APP);
234 RegisterSchemaResource("browserAction", IDR_EXTENSION_API_JSON_BROWSERACTION); 236 RegisterSchemaResource("browserAction", IDR_EXTENSION_API_JSON_BROWSERACTION);
235 RegisterSchemaResource("commands", IDR_EXTENSION_API_JSON_COMMANDS); 237 RegisterSchemaResource("commands", IDR_EXTENSION_API_JSON_COMMANDS);
236 RegisterSchemaResource("declarativeContent", 238 RegisterSchemaResource("declarativeContent",
237 IDR_EXTENSION_API_JSON_DECLARATIVE_CONTENT); 239 IDR_EXTENSION_API_JSON_DECLARATIVE_CONTENT);
238 RegisterSchemaResource("declarativeWebRequest", 240 RegisterSchemaResource("declarativeWebRequest",
239 IDR_EXTENSION_API_JSON_DECLARATIVE_WEBREQUEST); 241 IDR_EXTENSION_API_JSON_DECLARATIVE_WEBREQUEST);
240 RegisterSchemaResource("fileBrowserHandler", 242 RegisterSchemaResource("fileBrowserHandler",
241 IDR_EXTENSION_API_JSON_FILEBROWSERHANDLER); 243 IDR_EXTENSION_API_JSON_FILEBROWSERHANDLER);
242 RegisterSchemaResource("inputMethodPrivate", 244 RegisterSchemaResource("inputMethodPrivate",
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 break; 413 break;
412 414
413 api_name_candidate = api_name_candidate.substr(0, last_dot_index); 415 api_name_candidate = api_name_candidate.substr(0, last_dot_index);
414 } 416 }
415 417
416 *child_name = ""; 418 *child_name = "";
417 return std::string(); 419 return std::string();
418 } 420 }
419 421
420 } // namespace extensions 422 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698