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

Unified Diff: chrome/browser/background/background_contents_service.cc

Issue 933423003: Make BackgroundContentsService start up BackgroundContents with a delay, as for ExtensionHosts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: edulcni# Created 5 years, 10 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/background/background_contents_service.cc
diff --git a/chrome/browser/background/background_contents_service.cc b/chrome/browser/background/background_contents_service.cc
index 34f8446b24925d7d2fe8458ab170ad0fea6dc4fe..9cb64478d585083d666e2589f870d15db6fd1d18 100644
--- a/chrome/browser/background/background_contents_service.cc
+++ b/chrome/browser/background/background_contents_service.cc
@@ -634,10 +634,7 @@ void BackgroundContentsService::LoadBackgroundContents(
std::string(),
NULL);
- // TODO(atwilson): Create RenderViews asynchronously to avoid increasing
- // startup latency (http://crbug.com/47236).
- contents->web_contents()->GetController().LoadURL(
- url, content::Referrer(), ui::PAGE_TRANSITION_LINK, std::string());
+ contents->CreateRenderViewSoon(url);
}
BackgroundContents* BackgroundContentsService::CreateBackgroundContents(
« no previous file with comments | « chrome/browser/background/background_contents.cc ('k') | chrome/browser/extensions/chrome_extension_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698