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

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

Issue 12211105: Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, merge to LKGR. Created 7 years, 10 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 "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_path.h" 11 #include "base/file_path.h"
12 #include "base/file_util.h" 12 #include "base/file_util.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"
16 #include "base/prefs/pref_service.h"
15 #include "base/process_util.h" 17 #include "base/process_util.h"
16 #include "base/string_util.h" 18 #include "base/string_util.h"
17 #include "base/values.h" 19 #include "base/values.h"
18 #include "chrome/browser/component_updater/component_updater_service.h" 20 #include "chrome/browser/component_updater/component_updater_service.h"
19 #include "chrome/browser/prefs/pref_registry_simple.h"
20 #include "chrome/browser/prefs/pref_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
29 // CRX hash. The extension id is: npdjjkjlcidkjlamlmmdelcjbcpdjocm. 29 // CRX hash. The extension id is: npdjjkjlcidkjlamlmmdelcjbcpdjocm.
30 const uint8 sha2_hash[] = {0xdf, 0x39, 0x9a, 0x9b, 0x28, 0x3a, 0x9b, 0x0c, 30 const uint8 sha2_hash[] = {0xdf, 0x39, 0x9a, 0x9b, 0x28, 0x3a, 0x9b, 0x0c,
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 #if !defined(OS_CHROMEOS) 141 #if !defined(OS_CHROMEOS)
142 // We delay execute the registration because we are not required in 142 // We delay execute the registration because we are not required in
143 // the critical path during browser startup. 143 // the critical path during browser startup.
144 BrowserThread::PostDelayedTask( 144 BrowserThread::PostDelayedTask(
145 BrowserThread::UI, 145 BrowserThread::UI,
146 FROM_HERE, 146 FROM_HERE,
147 base::Bind(&RecoveryRegisterHelper, cus, prefs), 147 base::Bind(&RecoveryRegisterHelper, cus, prefs),
148 base::TimeDelta::FromSeconds(6)); 148 base::TimeDelta::FromSeconds(6));
149 #endif 149 #endif
150 } 150 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698