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

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

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 <stdint.h> 7 #include <stdint.h>
8 #include <string> 8 #include <string>
9 9
10 #include "base/base_paths.h" 10 #include "base/base_paths.h"
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "base/files/file_util.h" 15 #include "base/files/file_util.h"
16 #include "base/json/json_file_value_serializer.h" 16 #include "base/json/json_file_value_serializer.h"
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/memory/scoped_ptr.h" 18 #include "base/memory/scoped_ptr.h"
19 #include "base/metrics/histogram.h" 19 #include "base/metrics/histogram.h"
20 #include "base/path_service.h" 20 #include "base/path_service.h"
21 #include "base/prefs/pref_registry_simple.h"
22 #include "base/prefs/pref_service.h"
23 #include "base/process/kill.h" 21 #include "base/process/kill.h"
24 #include "base/process/launch.h" 22 #include "base/process/launch.h"
25 #include "base/process/process.h" 23 #include "base/process/process.h"
26 #include "base/threading/worker_pool.h" 24 #include "base/threading/worker_pool.h"
27 #include "build/build_config.h" 25 #include "build/build_config.h"
28 #include "chrome/common/chrome_switches.h" 26 #include "chrome/common/chrome_switches.h"
29 #include "chrome/common/pref_names.h" 27 #include "chrome/common/pref_names.h"
30 #include "components/component_updater/component_updater_paths.h" 28 #include "components/component_updater/component_updater_paths.h"
31 #include "components/component_updater/component_updater_service.h" 29 #include "components/component_updater/component_updater_service.h"
32 #include "components/component_updater/pref_names.h" 30 #include "components/component_updater/pref_names.h"
31 #include "components/prefs/pref_registry_simple.h"
32 #include "components/prefs/pref_service.h"
33 #include "components/update_client/update_client.h" 33 #include "components/update_client/update_client.h"
34 #include "content/public/browser/browser_thread.h" 34 #include "content/public/browser/browser_thread.h"
35 35
36 using content::BrowserThread; 36 using content::BrowserThread;
37 37
38 namespace component_updater { 38 namespace component_updater {
39 39
40 namespace { 40 namespace {
41 41
42 // CRX hash. The extension id is: npdjjkjlcidkjlamlmmdelcjbcpdjocm. 42 // CRX hash. The extension id is: npdjjkjlcidkjlamlmmdelcjbcpdjocm.
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 #endif // OS_WIN 439 #endif // OS_WIN
440 prefs->SetBoolean(prefs::kRecoveryComponentNeedsElevation, false); 440 prefs->SetBoolean(prefs::kRecoveryComponentNeedsElevation, false);
441 } 441 }
442 442
443 void DeclinedElevatedRecoveryInstall(PrefService* prefs) { 443 void DeclinedElevatedRecoveryInstall(PrefService* prefs) {
444 DCHECK_CURRENTLY_ON(BrowserThread::UI); 444 DCHECK_CURRENTLY_ON(BrowserThread::UI);
445 prefs->SetBoolean(prefs::kRecoveryComponentNeedsElevation, false); 445 prefs->SetBoolean(prefs::kRecoveryComponentNeedsElevation, false);
446 } 446 }
447 447
448 } // namespace component_updater 448 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698