diff options
Diffstat (limited to 'chrome/browser/app_controller_mac.mm')
-rw-r--r-- | chrome/browser/app_controller_mac.mm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm index c173740..50973f6 100644 --- a/chrome/browser/app_controller_mac.mm +++ b/chrome/browser/app_controller_mac.mm @@ -34,6 +34,7 @@ #include "chrome/browser/sessions/tab_restore_service.h" #include "chrome/browser/tab_contents/tab_contents.h" #include "chrome/common/chrome_switches.h" +#include "chrome/common/notification_service.h" #include "chrome/common/pref_names.h" #include "chrome/common/pref_service.h" #include "chrome/browser/profile_manager.h" @@ -333,6 +334,14 @@ static bool g_is_opening_new_window = false; [self openPendingURLs]; } +// This is called after profiles have been loaded and preferences registered. +// It is safe to access the default profile here. +- (void)applicationDidBecomeActive:(NSNotification*)notify { + NotificationService::current()->Notify(NotificationType::APP_ACTIVATED, + NotificationService::AllSources(), + NotificationService::NoDetails()); +} + // Helper function for populating and displaying the in progress downloads at // exit alert panel. - (BOOL)userWillWaitForInProgressDownloads:(int)downloadCount { |