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

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: Fix a compiler error in ChromeOS. Created 3 years, 9 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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 GetByID(id); 462 GetByID(id);
463 } 463 }
464 464
465 DeveloperPrivateAutoUpdateFunction::~DeveloperPrivateAutoUpdateFunction() {} 465 DeveloperPrivateAutoUpdateFunction::~DeveloperPrivateAutoUpdateFunction() {}
466 466
467 ExtensionFunction::ResponseAction DeveloperPrivateAutoUpdateFunction::Run() { 467 ExtensionFunction::ResponseAction DeveloperPrivateAutoUpdateFunction::Run() {
468 ExtensionUpdater* updater = 468 ExtensionUpdater* updater =
469 ExtensionSystem::Get(browser_context())->extension_service()->updater(); 469 ExtensionSystem::Get(browser_context())->extension_service()->updater();
470 if (updater) { 470 if (updater) {
471 ExtensionUpdater::CheckParams params; 471 ExtensionUpdater::CheckParams params;
472 params.on_demand_update = true;
472 params.install_immediately = true; 473 params.install_immediately = true;
473 updater->CheckNow(params); 474 updater->CheckNow(params);
474 } 475 }
475 return RespondNow(NoArguments()); 476 return RespondNow(NoArguments());
476 } 477 }
477 478
478 DeveloperPrivateGetExtensionsInfoFunction:: 479 DeveloperPrivateGetExtensionsInfoFunction::
479 DeveloperPrivateGetExtensionsInfoFunction() { 480 DeveloperPrivateGetExtensionsInfoFunction() {
480 } 481 }
481 482
(...skipping 974 matching lines...) Expand 10 before | Expand all | Expand 10 after
1456 update.extension_id, update.command_name, *update.keybinding); 1457 update.extension_id, update.command_name, *update.keybinding);
1457 } 1458 }
1458 1459
1459 return RespondNow(NoArguments()); 1460 return RespondNow(NoArguments());
1460 } 1461 }
1461 1462
1462 1463
1463 } // namespace api 1464 } // namespace api
1464 1465
1465 } // namespace extensions 1466 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698