| OLD | NEW |
| 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/process/launch.h" | 12 #include "base/process/launch.h" |
| 13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
| 14 #include "base/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
| 15 #include "chrome/app/chrome_command_ids.h" | 15 #include "chrome/app/chrome_command_ids.h" |
| 16 #include "chrome/browser/browser_process.h" | 16 #include "chrome/browser/browser_process.h" |
| 17 #include "chrome/browser/ui/browser.h" | 17 #include "chrome/browser/ui/browser.h" |
| 18 #include "chrome/browser/ui/browser_finder.h" | 18 #include "chrome/browser/ui/browser_finder.h" |
| 19 #include "chrome/browser/ui/global_error/global_error_service.h" | 19 #include "chrome/browser/ui/global_error/global_error_service.h" |
| 20 #include "components/component_updater/pref_names.h" | 20 #include "components/component_updater/pref_names.h" |
| 21 #include "components/prefs/pref_service.h" | 21 #include "components/prefs/pref_service.h" |
| 22 #include "content/public/browser/browser_thread.h" | 22 #include "content/public/browser/browser_thread.h" |
| 23 #include "grit/chromium_strings.h" | 23 #include "grit/chromium_strings.h" |
| 24 #include "grit/generated_resources.h" | 24 #include "grit/generated_resources.h" |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 void SRTGlobalError::OnUserinteractionDone() { | 221 void SRTGlobalError::OnUserinteractionDone() { |
| 222 DCHECK(interacted_); | 222 DCHECK(interacted_); |
| 223 // Once the user interacted with the bubble, we can forget about any pending | 223 // Once the user interacted with the bubble, we can forget about any pending |
| 224 // prompt. | 224 // prompt. |
| 225 g_browser_process->local_state()->SetBoolean(prefs::kSwReporterPendingPrompt, | 225 g_browser_process->local_state()->SetBoolean(prefs::kSwReporterPendingPrompt, |
| 226 false); | 226 false); |
| 227 delete this; | 227 delete this; |
| 228 } | 228 } |
| 229 | 229 |
| 230 } // namespace safe_browsing | 230 } // namespace safe_browsing |
| OLD | NEW |