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

Side by Side Diff: chrome/browser/component_updater/supervised_user_whitelist_installer.cc

Issue 2261533003: Provide a callback for Component Updater OnDemand calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/component_updater/supervised_user_whitelist_installer.h " 5 #include "chrome/browser/component_updater/supervised_user_whitelist_installer.h "
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 byte = 0; 635 byte = 0;
636 } 636 }
637 } 637 }
638 return hash; 638 return hash;
639 } 639 }
640 640
641 // static 641 // static
642 void SupervisedUserWhitelistInstaller::TriggerComponentUpdate( 642 void SupervisedUserWhitelistInstaller::TriggerComponentUpdate(
643 OnDemandUpdater* updater, 643 OnDemandUpdater* updater,
644 const std::string& crx_id) { 644 const std::string& crx_id) {
645 const bool result = updater->OnDemandUpdate(crx_id); 645 updater->OnDemandUpdate(crx_id, ComponentUpdateService::CompletionCallback());
Bernhard Bauer 2016/08/19 04:13:05 Could we DCHECK the result in a callback here? If
Sorin Jianu 2016/08/19 04:23:36 I will try to add the callback. I am not concerned
Sorin Jianu 2016/08/19 04:43:36 On a second thought, I prefer solving this in a fu
646 DCHECK(result);
647 } 646 }
648 647
649 } // namespace component_updater 648 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698