From 67372ecfa788fa29193f94029f9eccac2c08af0f Mon Sep 17 00:00:00 2001 From: "rlp@chromium.org" Date: Sat, 10 Sep 2011 01:30:46 +0000 Subject: Modifying prefetch to account for multi-profile. Items of note: - predictor_api is gone. Most functions in predictor_api.cc have moved into the chrome_browser_net::Predictor class or the Profile class. - The predictor state is cleaned up in the Profile dtor. - Predictor is owned by the ProfileIOData of the profile. - InitialObserver class is gone since each profile keeps their own info, the non-OTR don't care if anyone is OTR. - Predictor is created by the profile and then passed to the ProfileIOData. Then its initialization is finished on the IOThread. - ConnectInterceptor now subclasses off of UrlRequestJobFactory::Interceptor. - Updated Profile to create a SimpleShutdownPredictor with limited functionality when in unittests. BUG=89937,90114 TEST=passes existing Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=97446 Review URL: http://codereview.chromium.org/7467012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100555 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome_frame/test/net/fake_external_tab.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'chrome_frame/test/net/fake_external_tab.cc') diff --git a/chrome_frame/test/net/fake_external_tab.cc b/chrome_frame/test/net/fake_external_tab.cc index 319f452..991342b 100644 --- a/chrome_frame/test/net/fake_external_tab.cc +++ b/chrome_frame/test/net/fake_external_tab.cc @@ -269,9 +269,6 @@ void FakeExternalTab::Initialize() { FilePath profile_path(ProfileManager::GetDefaultProfileDir(user_data())); - Profile* profile = - g_browser_process->profile_manager()->GetProfile(profile_path); - // Initialize the content client which that code uses to talk to Chrome. content::SetContentClient(&g_chrome_content_client.Get()); @@ -281,7 +278,10 @@ void FakeExternalTab::Initialize() { content::GetContentClient()->set_renderer(&g_renderer_client.Get()); - // Create the child threads. + Profile* profile = + g_browser_process->profile_manager()->GetProfile(profile_path); + + // Create the child threads. g_browser_process->db_thread(); g_browser_process->file_thread(); g_browser_process->io_thread(); -- cgit v1.1