| 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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 GetByID(id); | 464 GetByID(id); |
| 465 } | 465 } |
| 466 | 466 |
| 467 DeveloperPrivateAutoUpdateFunction::~DeveloperPrivateAutoUpdateFunction() {} | 467 DeveloperPrivateAutoUpdateFunction::~DeveloperPrivateAutoUpdateFunction() {} |
| 468 | 468 |
| 469 ExtensionFunction::ResponseAction DeveloperPrivateAutoUpdateFunction::Run() { | 469 ExtensionFunction::ResponseAction DeveloperPrivateAutoUpdateFunction::Run() { |
| 470 ExtensionUpdater* updater = | 470 ExtensionUpdater* updater = |
| 471 ExtensionSystem::Get(browser_context())->extension_service()->updater(); | 471 ExtensionSystem::Get(browser_context())->extension_service()->updater(); |
| 472 if (updater) { | 472 if (updater) { |
| 473 ExtensionUpdater::CheckParams params; | 473 ExtensionUpdater::CheckParams params; |
| 474 params.fetch_priority = ManifestFetchData::FetchPriority::FOREGROUND; |
| 474 params.install_immediately = true; | 475 params.install_immediately = true; |
| 475 updater->CheckNow(params); | 476 updater->CheckNow(params); |
| 476 } | 477 } |
| 477 return RespondNow(NoArguments()); | 478 return RespondNow(NoArguments()); |
| 478 } | 479 } |
| 479 | 480 |
| 480 DeveloperPrivateGetExtensionsInfoFunction:: | 481 DeveloperPrivateGetExtensionsInfoFunction:: |
| 481 DeveloperPrivateGetExtensionsInfoFunction() { | 482 DeveloperPrivateGetExtensionsInfoFunction() { |
| 482 } | 483 } |
| 483 | 484 |
| (...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1487 update.extension_id, update.command_name, *update.keybinding); | 1488 update.extension_id, update.command_name, *update.keybinding); |
| 1488 } | 1489 } |
| 1489 | 1490 |
| 1490 return RespondNow(NoArguments()); | 1491 return RespondNow(NoArguments()); |
| 1491 } | 1492 } |
| 1492 | 1493 |
| 1493 | 1494 |
| 1494 } // namespace api | 1495 } // namespace api |
| 1495 | 1496 |
| 1496 } // namespace extensions | 1497 } // namespace extensions |
| OLD | NEW |