Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6398)

Unified Diff: chrome/browser/ui/views/first_run_bubble_unittest.cc

Issue 2342523002: Forcibly clear worker ref counts on shutdown. (Closed)
Patch Set: rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/first_run_bubble_unittest.cc
diff --git a/chrome/browser/ui/views/first_run_bubble_unittest.cc b/chrome/browser/ui/views/first_run_bubble_unittest.cc
index cb663969d1885df8f8caa028b18d3e2a942cd4d3..0686615acb84b8741cb4acd414b1234cb9ecd19c 100644
--- a/chrome/browser/ui/views/first_run_bubble_unittest.cc
+++ b/chrome/browser/ui/views/first_run_bubble_unittest.cc
@@ -8,6 +8,7 @@
#include "chrome/test/base/testing_profile.h"
#include "components/search_engines/template_url.h"
#include "components/search_engines/template_url_service.h"
+#include "content/public/test/test_browser_thread.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/aura/window.h"
#include "ui/aura/window_tree_host.h"
@@ -66,12 +67,16 @@ class FirstRunBubbleTest : public views::ViewsTestBase,
TestingProfile* profile() { return &profile_; }
private:
+ // TestBrowserThreadBundle cannot be used here because the ViewsTestBase
+ // superclass creates its own MessageLoop.
+ content::TestBrowserThread ui_thread_;
TestingProfile profile_;
DISALLOW_COPY_AND_ASSIGN(FirstRunBubbleTest);
};
-FirstRunBubbleTest::FirstRunBubbleTest() {}
+FirstRunBubbleTest::FirstRunBubbleTest()
+ : ui_thread_(content::BrowserThread::UI, base::MessageLoop::current()) {}
FirstRunBubbleTest::~FirstRunBubbleTest() {}

Powered by Google App Engine
This is Rietveld 408576698