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

Side by Side Diff: chrome/browser/component_updater/sw_reporter_installer_win.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) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/sw_reporter_installer_win.h" 5 #include "chrome/browser/component_updater/sw_reporter_installer_win.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/base_paths.h" 13 #include "base/base_paths.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/logging.h" 16 #include "base/logging.h"
17 #include "base/metrics/histogram.h" 17 #include "base/metrics/histogram.h"
18 #include "base/metrics/sparse_histogram.h" 18 #include "base/metrics/sparse_histogram.h"
19 #include "base/path_service.h" 19 #include "base/path_service.h"
20 #include "base/prefs/pref_registry_simple.h"
21 #include "base/strings/string_tokenizer.h" 20 #include "base/strings/string_tokenizer.h"
22 #include "base/thread_task_runner_handle.h" 21 #include "base/thread_task_runner_handle.h"
23 #include "base/threading/worker_pool.h" 22 #include "base/threading/worker_pool.h"
24 #include "base/time/time.h" 23 #include "base/time/time.h"
25 #include "base/win/registry.h" 24 #include "base/win/registry.h"
26 #include "chrome/browser/browser_process.h" 25 #include "chrome/browser/browser_process.h"
27 #include "chrome/browser/safe_browsing/srt_fetcher_win.h" 26 #include "chrome/browser/safe_browsing/srt_fetcher_win.h"
28 #include "chrome/browser/safe_browsing/srt_field_trial_win.h" 27 #include "chrome/browser/safe_browsing/srt_field_trial_win.h"
29 #include "components/component_updater/component_updater_paths.h" 28 #include "components/component_updater/component_updater_paths.h"
30 #include "components/component_updater/component_updater_service.h" 29 #include "components/component_updater/component_updater_service.h"
31 #include "components/component_updater/default_component_installer.h" 30 #include "components/component_updater/default_component_installer.h"
32 #include "components/component_updater/pref_names.h" 31 #include "components/component_updater/pref_names.h"
33 #include "components/pref_registry/pref_registry_syncable.h" 32 #include "components/pref_registry/pref_registry_syncable.h"
33 #include "components/prefs/pref_registry_simple.h"
34 #include "components/update_client/update_client.h" 34 #include "components/update_client/update_client.h"
35 #include "components/update_client/utils.h" 35 #include "components/update_client/utils.h"
36 #include "content/public/browser/browser_thread.h" 36 #include "content/public/browser/browser_thread.h"
37 37
38 namespace component_updater { 38 namespace component_updater {
39 39
40 namespace { 40 namespace {
41 41
42 // These two sets of values are used to send UMA information and are replicated 42 // These two sets of values are used to send UMA information and are replicated
43 // in the histograms.xml file, so the order MUST NOT CHANGE. 43 // in the histograms.xml file, so the order MUST NOT CHANGE.
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 } 278 }
279 279
280 void RegisterProfilePrefsForSwReporter( 280 void RegisterProfilePrefsForSwReporter(
281 user_prefs::PrefRegistrySyncable* registry) { 281 user_prefs::PrefRegistrySyncable* registry) {
282 registry->RegisterStringPref(prefs::kSwReporterPromptVersion, ""); 282 registry->RegisterStringPref(prefs::kSwReporterPromptVersion, "");
283 283
284 registry->RegisterStringPref(prefs::kSwReporterPromptSeed, ""); 284 registry->RegisterStringPref(prefs::kSwReporterPromptSeed, "");
285 } 285 }
286 286
287 } // namespace component_updater 287 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698