Index: chrome/browser/extensions/error_console/error_console_unittest.cc |
diff --git a/chrome/browser/extensions/error_console/error_console_unittest.cc b/chrome/browser/extensions/error_console/error_console_unittest.cc |
index 62b5320d1808498893a09b301a3544f1a15f9c83..792ff1474c74996c5598f76b21b524d11bd9e444 100644 |
--- a/chrome/browser/extensions/error_console/error_console_unittest.cc |
+++ b/chrome/browser/extensions/error_console/error_console_unittest.cc |
@@ -12,6 +12,7 @@ |
#include "base/strings/utf_string_conversions.h" |
#include "chrome/test/base/testing_profile.h" |
#include "content/public/common/url_constants.h" |
+#include "content/public/test/test_browser_thread_bundle.h" |
#include "extensions/browser/extension_error.h" |
#include "extensions/common/constants.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -55,14 +56,14 @@ scoped_ptr<const ExtensionError> CreateNewRuntimeError( |
class ErrorConsoleUnitTest : public testing::Test { |
public: |
- ErrorConsoleUnitTest() : |
- profile_(new TestingProfile), |
- error_console_(ErrorConsole::Get(profile_.get())) { |
+ ErrorConsoleUnitTest() |
+ : error_console_(ErrorConsole::Get(&profile_)) { |
} |
virtual ~ErrorConsoleUnitTest() { } |
protected: |
- scoped_ptr<TestingProfile> profile_; |
+ content::TestBrowserThreadBundle thread_bundle_; |
+ TestingProfile profile_; |
ErrorConsole* error_console_; |
}; |