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

Unified Diff: chrome_frame/test/net/fake_external_tab.cc

Issue 333043: If a HTTP post to a server returns any redirect code other than 307, then bro... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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_frame/test/net/fake_external_tab.cc
===================================================================
--- chrome_frame/test/net/fake_external_tab.cc (revision 30151)
+++ chrome_frame/test/net/fake_external_tab.cc (working copy)
@@ -19,7 +19,6 @@
#include "base/scoped_variant_win.h"
#include "chrome/browser/browser_prefs.h"
-#include "chrome/browser/chrome_thread.h"
#include "chrome/browser/process_singleton.h"
#include "chrome/browser/profile_manager.h"
#include "chrome/common/chrome_constants.h"
@@ -145,6 +144,9 @@
pss_subclass_.reset(new ProcessSingletonSubclass(this));
EXPECT_TRUE(pss_subclass_->Subclass(fake_chrome_.user_data()));
StartChromeFrameInHostBrowser();
+ // Register the main thread by instantiating it, but don't call any methods.
+ main_thread_.reset(new ChromeThread());
+ DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI));
}
CFUrlRequestUnittestRunner::~CFUrlRequestUnittestRunner() {
@@ -277,11 +279,6 @@
void CFUrlRequestUnittestRunner::RunMainUIThread() {
DCHECK(MessageLoop::current());
DCHECK(MessageLoop::current()->type() == MessageLoop::TYPE_UI);
-
- // Register the main thread by instantiating it, but don't call any methods.
- ChromeThread main_thread;
- DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI));
-
MessageLoop::current()->Run();
}

Powered by Google App Engine
This is Rietveld 408576698