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

Side by Side Diff: chrome/browser/extensions/api/developer_private/developer_private_api.cc

Issue 2768573002: Send traffic-management headers from extension updater. (Closed)
Patch Set: Change the code according to mek's comments. Created 3 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 (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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/extensions/external_cache.cc ('k') | chrome/browser/extensions/updater/extension_updater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698