Index: chrome/browser/ui/chrome_select_file_policy_unittest.cc |
diff --git a/chrome/browser/ui/chrome_select_file_policy_unittest.cc b/chrome/browser/ui/chrome_select_file_policy_unittest.cc |
index e1cce5fb67d829d8310d057403c28caecd281840..3485ca322dfc1754bad04497f86efa4d16b3bb11 100644 |
--- a/chrome/browser/ui/chrome_select_file_policy_unittest.cc |
+++ b/chrome/browser/ui/chrome_select_file_policy_unittest.cc |
@@ -5,7 +5,6 @@ |
#include "chrome/browser/ui/chrome_select_file_policy.h" |
#include "base/files/file_path.h" |
-#include "base/message_loop/message_loop.h" |
#include "base/strings/string16.h" |
#include "base/values.h" |
#include "chrome/browser/browser_process.h" |
@@ -15,7 +14,7 @@ |
#include "chrome/test/base/scoped_testing_local_state.h" |
#include "chrome/test/base/testing_browser_process.h" |
#include "components/prefs/pref_service.h" |
-#include "content/public/test/test_browser_thread.h" |
+#include "content/public/test/test_browser_thread_bundle.h" |
#include "testing/gtest/include/gtest/gtest.h" |
#include "ui/shell_dialogs/select_file_dialog.h" |
@@ -26,8 +25,6 @@ |
#define MAYBE_ExpectAsynchronousListenerCall ExpectAsynchronousListenerCall |
#endif |
-using content::BrowserThread; |
- |
namespace { |
class FileSelectionUser : public ui::SelectFileDialog::Listener { |
@@ -88,8 +85,7 @@ typedef testing::Test ChromeSelectFilePolicyTest; |
// Tests if SelectFileDialog::SelectFile returns asynchronously with |
// file-selection dialogs disabled by policy. |
TEST_F(ChromeSelectFilePolicyTest, MAYBE_ExpectAsynchronousListenerCall) { |
- base::MessageLoopForUI message_loop; |
- content::TestBrowserThread ui_thread(BrowserThread::UI, &message_loop); |
+ content::TestBrowserThreadBundle test_browser_thread_bundle; |
ScopedTestingLocalState local_state( |
TestingBrowserProcess::GetGlobal()); |