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

Side by Side Diff: chrome/browser/safe_browsing/chrome_cleaner/srt_global_error_win.cc

Issue 2846333003: Chrome cleaner: move Chrome Cleaner files to their own directory (Closed)
Patch Set: Created 3 years, 7 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/chrome_cleaner/srt_global_error_win.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/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/files/file_util.h" 13 #include "base/files/file_util.h"
14 #include "base/path_service.h" 14 #include "base/path_service.h"
15 #include "base/process/launch.h" 15 #include "base/process/launch.h"
16 #include "base/strings/string_number_conversions.h" 16 #include "base/strings/string_number_conversions.h"
17 #include "base/task_scheduler/post_task.h" 17 #include "base/task_scheduler/post_task.h"
18 #include "chrome/app/chrome_command_ids.h" 18 #include "chrome/app/chrome_command_ids.h"
19 #include "chrome/browser/browser_process.h" 19 #include "chrome/browser/browser_process.h"
20 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h" 20 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h"
21 #include "chrome/browser/safe_browsing/srt_client_info_win.h" 21 #include "chrome/browser/safe_browsing/chrome_cleaner/srt_client_info_win.h"
22 #include "chrome/browser/safe_browsing/srt_field_trial_win.h" 22 #include "chrome/browser/safe_browsing/chrome_cleaner/srt_field_trial_win.h"
23 #include "chrome/browser/ui/browser.h" 23 #include "chrome/browser/ui/browser.h"
24 #include "chrome/browser/ui/browser_finder.h" 24 #include "chrome/browser/ui/browser_finder.h"
25 #include "chrome/browser/ui/global_error/global_error_service.h" 25 #include "chrome/browser/ui/global_error/global_error_service.h"
26 #include "chrome/common/channel_info.h" 26 #include "chrome/common/channel_info.h"
27 #include "chrome/grit/chromium_strings.h" 27 #include "chrome/grit/chromium_strings.h"
28 #include "chrome/grit/generated_resources.h" 28 #include "chrome/grit/generated_resources.h"
29 #include "chrome/installer/util/install_util.h" 29 #include "chrome/installer/util/install_util.h"
30 #include "components/chrome_cleaner/public/constants/constants.h" 30 #include "components/chrome_cleaner/public/constants/constants.h"
31 #include "components/component_updater/pref_names.h" 31 #include "components/component_updater/pref_names.h"
32 #include "components/prefs/pref_service.h" 32 #include "components/prefs/pref_service.h"
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 void SRTGlobalError::OnUserinteractionDone() { 264 void SRTGlobalError::OnUserinteractionDone() {
265 DCHECK(interacted_); 265 DCHECK(interacted_);
266 // Once the user interacted with the bubble, we can forget about any pending 266 // Once the user interacted with the bubble, we can forget about any pending
267 // prompt. 267 // prompt.
268 g_browser_process->local_state()->SetBoolean(prefs::kSwReporterPendingPrompt, 268 g_browser_process->local_state()->SetBoolean(prefs::kSwReporterPendingPrompt,
269 false); 269 false);
270 delete this; 270 delete this;
271 } 271 }
272 272
273 } // namespace safe_browsing 273 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698