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

Side by Side Diff: chrome/browser/safe_browsing/srt_global_error_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 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/safe_browsing/srt_global_error_win.h" 5 #include "chrome/browser/safe_browsing/srt_global_error_win.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/files/file_util.h" 11 #include "base/files/file_util.h"
12 #include "base/prefs/pref_service.h"
13 #include "base/process/launch.h" 12 #include "base/process/launch.h"
14 #include "base/single_thread_task_runner.h" 13 #include "base/single_thread_task_runner.h"
15 #include "base/thread_task_runner_handle.h" 14 #include "base/thread_task_runner_handle.h"
16 #include "chrome/app/chrome_command_ids.h" 15 #include "chrome/app/chrome_command_ids.h"
17 #include "chrome/browser/browser_process.h" 16 #include "chrome/browser/browser_process.h"
18 #include "chrome/browser/safe_browsing/srt_field_trial_win.h" 17 #include "chrome/browser/safe_browsing/srt_field_trial_win.h"
19 #include "chrome/browser/ui/browser.h" 18 #include "chrome/browser/ui/browser.h"
20 #include "chrome/browser/ui/browser_finder.h" 19 #include "chrome/browser/ui/browser_finder.h"
21 #include "chrome/browser/ui/global_error/global_error_service.h" 20 #include "chrome/browser/ui/global_error/global_error_service.h"
22 #include "components/component_updater/pref_names.h" 21 #include "components/component_updater/pref_names.h"
22 #include "components/prefs/pref_service.h"
23 #include "content/public/browser/browser_thread.h" 23 #include "content/public/browser/browser_thread.h"
24 #include "grit/chromium_strings.h" 24 #include "grit/chromium_strings.h"
25 #include "grit/generated_resources.h" 25 #include "grit/generated_resources.h"
26 #include "ui/base/l10n/l10n_util.h" 26 #include "ui/base/l10n/l10n_util.h"
27 27
28 using base::SingleThreadTaskRunner; 28 using base::SingleThreadTaskRunner;
29 using base::ThreadTaskRunnerHandle; 29 using base::ThreadTaskRunnerHandle;
30 using content::BrowserThread; 30 using content::BrowserThread;
31 31
32 namespace safe_browsing { 32 namespace safe_browsing {
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 void SRTGlobalError::OnUserinteractionDone() { 214 void SRTGlobalError::OnUserinteractionDone() {
215 DCHECK(interacted_); 215 DCHECK(interacted_);
216 // Once the user interacted with the bubble, we can forget about any pending 216 // Once the user interacted with the bubble, we can forget about any pending
217 // prompt. 217 // prompt.
218 g_browser_process->local_state()->SetBoolean(prefs::kSwReporterPendingPrompt, 218 g_browser_process->local_state()->SetBoolean(prefs::kSwReporterPendingPrompt,
219 false); 219 false);
220 delete this; 220 delete this;
221 } 221 }
222 222
223 } // namespace safe_browsing 223 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/srt_fetcher_win.cc ('k') | chrome/browser/safe_browsing/ui_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698