diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-17 00:15:49 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-17 00:15:49 +0000 |
commit | a0ef9e131a03fb76aa9b59b4123ceb05bb366cc0 (patch) | |
tree | f400e8a3f4a21bcbc964a8c3094639b83049151c /chrome/browser/gtk | |
parent | 16c2bca118c971f0261252ee970fd27148a7f506 (diff) | |
download | chromium_src-a0ef9e131a03fb76aa9b59b4123ceb05bb366cc0.zip chromium_src-a0ef9e131a03fb76aa9b59b4123ceb05bb366cc0.tar.gz chromium_src-a0ef9e131a03fb76aa9b59b4123ceb05bb366cc0.tar.bz2 |
Spellchecker: Always destruct url request context getter on io thread.
To do this, we have to initiate downloads on the UI thread and don't hold onto a reference in the file thread.
BUG=27667
Review URL: http://codereview.chromium.org/387055
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32129 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk')
-rw-r--r-- | chrome/browser/gtk/options/cookies_view_unittest.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/chrome/browser/gtk/options/cookies_view_unittest.cc b/chrome/browser/gtk/options/cookies_view_unittest.cc index 10f757e..2160bfa 100644 --- a/chrome/browser/gtk/options/cookies_view_unittest.cc +++ b/chrome/browser/gtk/options/cookies_view_unittest.cc @@ -61,6 +61,12 @@ class CookieTestingProfile : public TestingProfile { class CookiesViewTest : public testing::Test { public: + CookiesViewTest() : io_thread_(ChromeThread::IO, &message_loop_) { + } + + virtual ~CookiesViewTest() { + } + virtual void SetUp() { profile_.reset(new CookieTestingProfile()); } @@ -153,7 +159,9 @@ class CookiesViewTest : public testing::Test { } protected: - MessageLoopForUI message_loop_; + MessageLoop message_loop_; + ChromeThread io_thread_; + scoped_ptr<CookieTestingProfile> profile_; }; |