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

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

Issue 106973003: Rename experimental.accessibility to accessibilityPrivate (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix failing tests Created 6 years, 8 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 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 break; 415 break;
414 416
415 api_name_candidate = api_name_candidate.substr(0, last_dot_index); 417 api_name_candidate = api_name_candidate.substr(0, last_dot_index);
416 } 418 }
417 419
418 *child_name = ""; 420 *child_name = "";
419 return std::string(); 421 return std::string();
420 } 422 }
421 423
422 } // namespace extensions 424 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698