Index: chrome/browser/ui/cocoa/browser_window_cocoa.mm |
diff --git a/chrome/browser/ui/cocoa/browser_window_cocoa.mm b/chrome/browser/ui/cocoa/browser_window_cocoa.mm |
index 7e1c93c050168d7647b97a64cfe6dd1846aebfba..2cf9a0804f790409e36836b10aa2a4db7af5189f 100644 |
--- a/chrome/browser/ui/cocoa/browser_window_cocoa.mm |
+++ b/chrome/browser/ui/cocoa/browser_window_cocoa.mm |
@@ -16,6 +16,7 @@ |
#include "chrome/browser/download/download_shelf.h" |
#include "chrome/browser/extensions/extension_util.h" |
#include "chrome/browser/extensions/tab_helper.h" |
+#include "chrome/browser/metrics/browser_window_histogram_helper.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/profiles/profile_window.h" |
#include "chrome/browser/shell_integration.h" |
@@ -175,6 +176,10 @@ void BrowserWindowCocoa::Show() { |
// substantial part of startup time when any CALayers are part of the |
// window's NSView heirarchy. |
[window() makeKeyAndOrderFront:controller_]; |
+ |
+ // At this point all the Browser's UI is painted on the screen. There's no |
+ // need to wait for the compositor, so pass the nullptr instead. |
+ BrowserWindowHistogramHelper::OnBrowserPainted(nullptr); |
} |
// When creating windows from nibs it is necessary to |makeKeyAndOrderFront:| |