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 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 GetByID(id); | 520 GetByID(id); |
521 } | 521 } |
522 | 522 |
523 DeveloperPrivateAutoUpdateFunction::~DeveloperPrivateAutoUpdateFunction() {} | 523 DeveloperPrivateAutoUpdateFunction::~DeveloperPrivateAutoUpdateFunction() {} |
524 | 524 |
525 ExtensionFunction::ResponseAction DeveloperPrivateAutoUpdateFunction::Run() { | 525 ExtensionFunction::ResponseAction DeveloperPrivateAutoUpdateFunction::Run() { |
526 ExtensionUpdater* updater = | 526 ExtensionUpdater* updater = |
527 ExtensionSystem::Get(browser_context())->extension_service()->updater(); | 527 ExtensionSystem::Get(browser_context())->extension_service()->updater(); |
528 if (updater) { | 528 if (updater) { |
529 ExtensionUpdater::CheckParams params; | 529 ExtensionUpdater::CheckParams params; |
| 530 params.fetch_priority = ManifestFetchData::FetchPriority::FOREGROUND; |
530 params.install_immediately = true; | 531 params.install_immediately = true; |
531 updater->CheckNow(params); | 532 updater->CheckNow(params); |
532 } | 533 } |
533 return RespondNow(NoArguments()); | 534 return RespondNow(NoArguments()); |
534 } | 535 } |
535 | 536 |
536 DeveloperPrivateGetExtensionsInfoFunction:: | 537 DeveloperPrivateGetExtensionsInfoFunction:: |
537 DeveloperPrivateGetExtensionsInfoFunction() { | 538 DeveloperPrivateGetExtensionsInfoFunction() { |
538 } | 539 } |
539 | 540 |
(...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1556 update.extension_id, update.command_name, *update.keybinding); | 1557 update.extension_id, update.command_name, *update.keybinding); |
1557 } | 1558 } |
1558 | 1559 |
1559 return RespondNow(NoArguments()); | 1560 return RespondNow(NoArguments()); |
1560 } | 1561 } |
1561 | 1562 |
1562 | 1563 |
1563 } // namespace api | 1564 } // namespace api |
1564 | 1565 |
1565 } // namespace extensions | 1566 } // namespace extensions |
OLD | NEW |