diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-22 18:58:16 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-22 18:58:16 +0000 |
commit | bea0616a1c86509eb3e8a05b43735d48e4cb2f6f (patch) | |
tree | 24122f23f48dd1309bc31ae066498b7a5de28c6b /chrome/browser/browser_init.cc | |
parent | 8aff4ad0475f0b3b7f16a4d02c73f1062e322d73 (diff) | |
download | chromium_src-bea0616a1c86509eb3e8a05b43735d48e4cb2f6f.zip chromium_src-bea0616a1c86509eb3e8a05b43735d48e4cb2f6f.tar.gz chromium_src-bea0616a1c86509eb3e8a05b43735d48e4cb2f6f.tar.bz2 |
Add a notification observer for the first tab load for Chrome OS.
It simply records the uptime into the tmp directory for metrics collection
BUG=none
TEST=none
Original review: http://codereview.chromium.org/548044
Patch by sosa@chromium.org
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36876 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_init.cc')
-rw-r--r-- | chrome/browser/browser_init.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/browser_init.cc b/chrome/browser/browser_init.cc index 9406d6d..0a74de0 100644 --- a/chrome/browser/browser_init.cc +++ b/chrome/browser/browser_init.cc @@ -57,6 +57,7 @@ #endif #if defined(OS_CHROMEOS) +#include "chrome/browser/chromeos/browser_notification_observers.h" #include "chrome/browser/chromeos/gview_request_interceptor.h" #include "chrome/browser/chromeos/mount_library.h" #include "chrome/browser/chromeos/usb_mount_observer.h" @@ -312,6 +313,14 @@ bool LaunchBrowser(const CommandLine& command_line, Profile* profile, in_startup = process_startup; DCHECK(profile); + // This forces the creation of the initial tavb notification observer + // singleton. It must be created before browser launch to catch first tab + // load. +#if defined(OS_CHROMEOS) + if (process_startup) + chromeos::InitialTabNotificationObserver::Get(); +#endif + // Continue with the off-the-record profile from here on if --incognito if (command_line.HasSwitch(switches::kIncognito)) profile = profile->GetOffTheRecordProfile(); |