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

Unified Diff: chrome/browser/ui/browser_navigator.cc

Issue 2388803003: Fix FirstWebContentsProfiler not getting created when using session restore. (Closed)
Patch Set: Created 4 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/browser/ui/browser_navigator.cc
diff --git a/chrome/browser/ui/browser_navigator.cc b/chrome/browser/ui/browser_navigator.cc
index 79ad0983dd4329b4c66f4e03ac9948be0560bcef..4fcdaf432e6572220571491992ae0bad8ac90fbd 100644
--- a/chrome/browser/ui/browser_navigator.cc
+++ b/chrome/browser/ui/browser_navigator.cc
@@ -377,11 +377,7 @@ content::WebContents* CreateTargetContents(const chrome::NavigateParams& params,
#endif
#if !defined(OS_ANDROID)
- static bool first_web_contents_profiled = false;
- if (!first_web_contents_profiled) {
- first_web_contents_profiled = true;
- new FirstWebContentsProfiler(target_contents);
- }
+ FirstWebContentsProfiler::WebContentsStarted(target_contents);
#endif // !defined(OS_ANDROID)
return target_contents;
}

Powered by Google App Engine
This is Rietveld 408576698