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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 5912001: Add PrerenderResourceHandler and hook it into the ResourceDispatcherHost.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: More comments and fixing nits Created 9 years, 12 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/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 2c610e19ec17d86c1f589e2d918a4922306e283e..03f6cf23b6787b8beb42577f571f4e239cb67652 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -1366,7 +1366,7 @@ PrerenderManager* ProfileImpl::GetPrerenderManager() {
CommandLine* cl = CommandLine::ForCurrentProcess();
if (!cl->HasSwitch(switches::kEnablePagePrerender))
return NULL;
- if (!prerender_manager_.get())
- prerender_manager_.reset(new PrerenderManager(this));
- return prerender_manager_.get();
+ if (!prerender_manager_)
+ prerender_manager_ = new PrerenderManager(this);
+ return prerender_manager_;
}

Powered by Google App Engine
This is Rietveld 408576698