| 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/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
| 13 #include "base/process/launch.h" | 13 #include "base/process/launch.h" |
| 14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
| 15 #include "base/thread_task_runner_handle.h" | 15 #include "base/thread_task_runner_handle.h" |
| 16 #include "chrome/app/chrome_command_ids.h" | 16 #include "chrome/app/chrome_command_ids.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 "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
| 21 #include "grit/chromium_strings.h" | 21 #include "grit/chromium_strings.h" |
| 22 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
| 23 #include "grit/google_chrome_strings.h" | |
| 24 #include "ui/base/l10n/l10n_util.h" | 23 #include "ui/base/l10n/l10n_util.h" |
| 25 | 24 |
| 26 using base::SingleThreadTaskRunner; | 25 using base::SingleThreadTaskRunner; |
| 27 using base::ThreadTaskRunnerHandle; | 26 using base::ThreadTaskRunnerHandle; |
| 28 using content::BrowserThread; | 27 using content::BrowserThread; |
| 29 | 28 |
| 30 namespace { | 29 namespace { |
| 31 | 30 |
| 32 // Used as a backup plan in case the SRT executable was not successfully | 31 // Used as a backup plan in case the SRT executable was not successfully |
| 33 // downloaded or run. | 32 // downloaded or run. |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 } | 197 } |
| 199 | 198 |
| 200 BrowserThread::PostBlockingPoolTask( | 199 BrowserThread::PostBlockingPoolTask( |
| 201 FROM_HERE, base::Bind(&DeleteFilesFromBlockingPool, downloaded_path_)); | 200 FROM_HERE, base::Bind(&DeleteFilesFromBlockingPool, downloaded_path_)); |
| 202 DestroySelf(); | 201 DestroySelf(); |
| 203 } | 202 } |
| 204 | 203 |
| 205 void SRTGlobalError::DestroySelf() { | 204 void SRTGlobalError::DestroySelf() { |
| 206 delete this; | 205 delete this; |
| 207 } | 206 } |
| OLD | NEW |