OLD | NEW |
---|---|
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 "chrome/common/extensions/chrome_extensions_client.h" | 5 #include "chrome/common/extensions/chrome_extensions_client.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
254 const std::string& name) const { | 254 const std::string& name) const { |
255 // Test from most common to least common. | 255 // Test from most common to least common. |
256 if (api::GeneratedSchemas::IsGenerated(name)) | 256 if (api::GeneratedSchemas::IsGenerated(name)) |
257 return api::GeneratedSchemas::Get(name); | 257 return api::GeneratedSchemas::Get(name); |
258 | 258 |
259 return core_api::GeneratedSchemas::Get(name); | 259 return core_api::GeneratedSchemas::Get(name); |
260 } | 260 } |
261 | 261 |
262 void ChromeExtensionsClient::RegisterAPISchemaResources( | 262 void ChromeExtensionsClient::RegisterAPISchemaResources( |
263 ExtensionAPI* api) const { | 263 ExtensionAPI* api) const { |
264 api->RegisterSchemaResource("accessibilityFeatures", | |
265 IDR_EXTENSION_API_JSON_ACCESSIBILITYFEATURES); | |
not at google - send to devlin
2014/12/11 17:48:15
Are you sure you need this? We *should* be auto-ge
je_julie(Not used)
2014/12/12 13:15:46
You're right. I removed it.
| |
264 api->RegisterSchemaResource("accessibilityPrivate", | 266 api->RegisterSchemaResource("accessibilityPrivate", |
265 IDR_EXTENSION_API_JSON_ACCESSIBILITYPRIVATE); | 267 IDR_EXTENSION_API_JSON_ACCESSIBILITYPRIVATE); |
266 api->RegisterSchemaResource("app", IDR_EXTENSION_API_JSON_APP); | 268 api->RegisterSchemaResource("app", IDR_EXTENSION_API_JSON_APP); |
267 api->RegisterSchemaResource("browserAction", | 269 api->RegisterSchemaResource("browserAction", |
268 IDR_EXTENSION_API_JSON_BROWSERACTION); | 270 IDR_EXTENSION_API_JSON_BROWSERACTION); |
269 api->RegisterSchemaResource("commands", IDR_EXTENSION_API_JSON_COMMANDS); | 271 api->RegisterSchemaResource("commands", IDR_EXTENSION_API_JSON_COMMANDS); |
270 api->RegisterSchemaResource("declarativeContent", | 272 api->RegisterSchemaResource("declarativeContent", |
271 IDR_EXTENSION_API_JSON_DECLARATIVE_CONTENT); | 273 IDR_EXTENSION_API_JSON_DECLARATIVE_CONTENT); |
272 api->RegisterSchemaResource("fileBrowserHandler", | 274 api->RegisterSchemaResource("fileBrowserHandler", |
273 IDR_EXTENSION_API_JSON_FILEBROWSERHANDLER); | 275 IDR_EXTENSION_API_JSON_FILEBROWSERHANDLER); |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
351 | 353 |
352 return image_paths; | 354 return image_paths; |
353 } | 355 } |
354 | 356 |
355 // static | 357 // static |
356 ChromeExtensionsClient* ChromeExtensionsClient::GetInstance() { | 358 ChromeExtensionsClient* ChromeExtensionsClient::GetInstance() { |
357 return g_client.Pointer(); | 359 return g_client.Pointer(); |
358 } | 360 } |
359 | 361 |
360 } // namespace extensions | 362 } // namespace extensions |
OLD | NEW |