| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/download/download_test_file_activity_observer.h" | 5 #include "chrome/browser/download/download_test_file_activity_observer.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| 11 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
| 12 #include "base/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
| 13 #include "chrome/browser/download/chrome_download_manager_delegate.h" | 13 #include "chrome/browser/download/chrome_download_manager_delegate.h" |
| 14 #include "chrome/browser/download/download_service.h" | 14 #include "chrome/browser/download/download_service.h" |
| 15 #include "chrome/browser/download/download_service_factory.h" | 15 #include "chrome/browser/download/download_service_factory.h" |
| 16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
| 17 | 17 |
| 18 namespace content { | 18 namespace content { |
| 19 class DownloadItem; | 19 class DownloadItem; |
| 20 } | 20 } |
| 21 | 21 |
| 22 // Test ChromeDownloadManagerDelegate that controls whether how file chooser | 22 // Test ChromeDownloadManagerDelegate that controls whether how file chooser |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 void DownloadTestFileActivityObserver::EnableFileChooser(bool enable) { | 86 void DownloadTestFileActivityObserver::EnableFileChooser(bool enable) { |
| 87 if (test_delegate_.get()) | 87 if (test_delegate_.get()) |
| 88 test_delegate_->EnableFileChooser(enable); | 88 test_delegate_->EnableFileChooser(enable); |
| 89 } | 89 } |
| 90 | 90 |
| 91 bool DownloadTestFileActivityObserver::TestAndResetDidShowFileChooser() { | 91 bool DownloadTestFileActivityObserver::TestAndResetDidShowFileChooser() { |
| 92 return test_delegate_.get() && | 92 return test_delegate_.get() && |
| 93 test_delegate_->TestAndResetDidShowFileChooser(); | 93 test_delegate_->TestAndResetDidShowFileChooser(); |
| 94 } | 94 } |
| OLD | NEW |