| OLD | NEW |
| 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> |
| 8 |
| 7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 8 #include "base/callback.h" | 10 #include "base/callback.h" |
| 9 #include "base/files/file_enumerator.h" | 11 #include "base/files/file_enumerator.h" |
| 10 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 11 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
| 12 #include "base/files/important_file_writer.h" | 14 #include "base/files/important_file_writer.h" |
| 13 #include "base/location.h" | 15 #include "base/location.h" |
| 16 #include "base/macros.h" |
| 14 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
| 15 #include "base/metrics/user_metrics.h" | 18 #include "base/metrics/user_metrics.h" |
| 16 #include "base/metrics/user_metrics_action.h" | 19 #include "base/metrics/user_metrics_action.h" |
| 17 #include "base/path_service.h" | 20 #include "base/path_service.h" |
| 18 #include "base/prefs/pref_registry_simple.h" | 21 #include "base/prefs/pref_registry_simple.h" |
| 19 #include "base/prefs/pref_service.h" | 22 #include "base/prefs/pref_service.h" |
| 20 #include "base/prefs/scoped_user_pref_update.h" | 23 #include "base/prefs/scoped_user_pref_update.h" |
| 21 #include "base/scoped_observer.h" | 24 #include "base/scoped_observer.h" |
| 22 #include "base/sequenced_task_runner.h" | 25 #include "base/sequenced_task_runner.h" |
| 23 #include "base/strings/string_util.h" | 26 #include "base/strings/string_util.h" |
| (...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 569 | 572 |
| 570 // static | 573 // static |
| 571 void SupervisedUserWhitelistInstaller::TriggerComponentUpdate( | 574 void SupervisedUserWhitelistInstaller::TriggerComponentUpdate( |
| 572 OnDemandUpdater* updater, | 575 OnDemandUpdater* updater, |
| 573 const std::string& crx_id) { | 576 const std::string& crx_id) { |
| 574 const bool result = updater->OnDemandUpdate(crx_id); | 577 const bool result = updater->OnDemandUpdate(crx_id); |
| 575 DCHECK(result); | 578 DCHECK(result); |
| 576 } | 579 } |
| 577 | 580 |
| 578 } // namespace component_updater | 581 } // namespace component_updater |
| OLD | NEW |