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

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

Issue 449643002: Componentize component_updater: Move over a bunch of files to the component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix DEPS order Created 6 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 | Annotate | Revision Log
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/component_updater/recovery_component_installer.h" 5 #include "chrome/browser/component_updater/recovery_component_installer.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/file_util.h" 13 #include "base/file_util.h"
14 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/path_service.h" 16 #include "base/path_service.h"
17 #include "base/prefs/pref_registry_simple.h" 17 #include "base/prefs/pref_registry_simple.h"
18 #include "base/prefs/pref_service.h" 18 #include "base/prefs/pref_service.h"
19 #include "base/process/launch.h" 19 #include "base/process/launch.h"
20 #include "base/strings/string_util.h" 20 #include "base/strings/string_util.h"
21 #include "base/values.h" 21 #include "base/values.h"
22 #include "chrome/browser/component_updater/component_updater_service.h"
23 #include "components/component_updater/component_updater_paths.h" 22 #include "components/component_updater/component_updater_paths.h"
23 #include "components/component_updater/component_updater_service.h"
24 #include "components/component_updater/pref_names.h" 24 #include "components/component_updater/pref_names.h"
25 #include "content/public/browser/browser_thread.h" 25 #include "content/public/browser/browser_thread.h"
26 26
27 using content::BrowserThread; 27 using content::BrowserThread;
28 28
29 namespace component_updater { 29 namespace component_updater {
30 30
31 namespace { 31 namespace {
32 32
33 // CRX hash. The extension id is: npdjjkjlcidkjlamlmmdelcjbcpdjocm. 33 // CRX hash. The extension id is: npdjjkjlcidkjlamlmmdelcjbcpdjocm.
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 base::Bind(&RecoveryRegisterHelper, cus, prefs), 167 base::Bind(&RecoveryRegisterHelper, cus, prefs),
168 base::TimeDelta::FromSeconds(6)); 168 base::TimeDelta::FromSeconds(6));
169 #endif 169 #endif
170 } 170 }
171 171
172 void RegisterPrefsForRecoveryComponent(PrefRegistrySimple* registry) { 172 void RegisterPrefsForRecoveryComponent(PrefRegistrySimple* registry) {
173 registry->RegisterStringPref(prefs::kRecoveryComponentVersion, "0.0.0.0"); 173 registry->RegisterStringPref(prefs::kRecoveryComponentVersion, "0.0.0.0");
174 } 174 }
175 175
176 } // namespace component_updater 176 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698