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/component_updater/recovery_component_installer.h" | 5 #include "chrome/browser/component_updater/recovery_component_installer.h" |
6 | 6 |
7 #include "base/base_paths.h" | 7 #include "base/base_paths.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/path_service.h" | 14 #include "base/path_service.h" |
15 #include "base/prefs/pref_registry_simple.h" | 15 #include "base/prefs/pref_registry_simple.h" |
16 #include "base/prefs/pref_service.h" | 16 #include "base/prefs/pref_service.h" |
17 #include "base/process_util.h" | 17 #include "base/process_util.h" |
18 #include "base/string_util.h" | 18 #include "base/strings/string_util.h" |
19 #include "base/values.h" | 19 #include "base/values.h" |
20 #include "chrome/browser/component_updater/component_updater_service.h" | 20 #include "chrome/browser/component_updater/component_updater_service.h" |
21 #include "chrome/common/chrome_version_info.h" | 21 #include "chrome/common/chrome_version_info.h" |
22 #include "chrome/common/pref_names.h" | 22 #include "chrome/common/pref_names.h" |
23 #include "content/public/browser/browser_thread.h" | 23 #include "content/public/browser/browser_thread.h" |
24 | 24 |
25 using content::BrowserThread; | 25 using content::BrowserThread; |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 BrowserThread::UI, | 139 BrowserThread::UI, |
140 FROM_HERE, | 140 FROM_HERE, |
141 base::Bind(&RecoveryRegisterHelper, cus, prefs), | 141 base::Bind(&RecoveryRegisterHelper, cus, prefs), |
142 base::TimeDelta::FromSeconds(6)); | 142 base::TimeDelta::FromSeconds(6)); |
143 #endif | 143 #endif |
144 } | 144 } |
145 | 145 |
146 void RegisterPrefsForRecoveryComponent(PrefRegistrySimple* registry) { | 146 void RegisterPrefsForRecoveryComponent(PrefRegistrySimple* registry) { |
147 registry->RegisterStringPref(prefs::kRecoveryComponentVersion, "0.0.0.0"); | 147 registry->RegisterStringPref(prefs::kRecoveryComponentVersion, "0.0.0.0"); |
148 } | 148 } |
OLD | NEW |