| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser/extensions/api/developer_private/developer_private_api.
h" | 5 #include "chrome/browser/extensions/api/developer_private/developer_private_api.
h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 return info; | 181 return info; |
| 182 } | 182 } |
| 183 | 183 |
| 184 } // namespace | 184 } // namespace |
| 185 | 185 |
| 186 namespace ChoosePath = api::developer_private::ChoosePath; | 186 namespace ChoosePath = api::developer_private::ChoosePath; |
| 187 namespace GetItemsInfo = api::developer_private::GetItemsInfo; | 187 namespace GetItemsInfo = api::developer_private::GetItemsInfo; |
| 188 namespace PackDirectory = api::developer_private::PackDirectory; | 188 namespace PackDirectory = api::developer_private::PackDirectory; |
| 189 namespace Reload = api::developer_private::Reload; | 189 namespace Reload = api::developer_private::Reload; |
| 190 | 190 |
| 191 static base::LazyInstance<BrowserContextKeyedAPIFactory<DeveloperPrivateAPI> > | 191 static base::LazyInstance<BrowserContextKeyedAPIFactory<DeveloperPrivateAPI>>:: |
| 192 g_factory = LAZY_INSTANCE_INITIALIZER; | 192 DestructorAtExit g_factory = LAZY_INSTANCE_INITIALIZER; |
| 193 | 193 |
| 194 // static | 194 // static |
| 195 BrowserContextKeyedAPIFactory<DeveloperPrivateAPI>* | 195 BrowserContextKeyedAPIFactory<DeveloperPrivateAPI>* |
| 196 DeveloperPrivateAPI::GetFactoryInstance() { | 196 DeveloperPrivateAPI::GetFactoryInstance() { |
| 197 return g_factory.Pointer(); | 197 return g_factory.Pointer(); |
| 198 } | 198 } |
| 199 | 199 |
| 200 // static | 200 // static |
| 201 DeveloperPrivateAPI* DeveloperPrivateAPI::Get( | 201 DeveloperPrivateAPI* DeveloperPrivateAPI::Get( |
| 202 content::BrowserContext* context) { | 202 content::BrowserContext* context) { |
| (...skipping 1253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1456 update.extension_id, update.command_name, *update.keybinding); | 1456 update.extension_id, update.command_name, *update.keybinding); |
| 1457 } | 1457 } |
| 1458 | 1458 |
| 1459 return RespondNow(NoArguments()); | 1459 return RespondNow(NoArguments()); |
| 1460 } | 1460 } |
| 1461 | 1461 |
| 1462 | 1462 |
| 1463 } // namespace api | 1463 } // namespace api |
| 1464 | 1464 |
| 1465 } // namespace extensions | 1465 } // namespace extensions |
| OLD | NEW |