| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/startup/default_browser_prompt.h" | 5 #include "chrome/browser/ui/startup/default_browser_prompt.h" |
| 6 | 6 |
| 7 #include "base/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/browser/shell_integration.h" | 9 #include "chrome/browser/shell_integration.h" |
| 10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 private: | 34 private: |
| 35 explicit SetMetroBrowserFlowLauncher(Profile* profile) | 35 explicit SetMetroBrowserFlowLauncher(Profile* profile) |
| 36 : profile_(profile) { | 36 : profile_(profile) { |
| 37 registrar_.Add(this, content::NOTIFICATION_LOAD_COMPLETED_MAIN_FRAME, | 37 registrar_.Add(this, content::NOTIFICATION_LOAD_COMPLETED_MAIN_FRAME, |
| 38 content::NotificationService::AllSources()); | 38 content::NotificationService::AllSources()); |
| 39 } | 39 } |
| 40 | 40 |
| 41 // content::NotificationObserver override: | 41 // content::NotificationObserver override: |
| 42 virtual void Observe(int type, | 42 virtual void Observe(int type, |
| 43 const content::NotificationSource& source, | 43 const content::NotificationSource& source, |
| 44 const content::NotificationDetails& details) OVERRIDE; | 44 const content::NotificationDetails& details) override; |
| 45 | 45 |
| 46 content::NotificationRegistrar registrar_; | 46 content::NotificationRegistrar registrar_; |
| 47 Profile* profile_; | 47 Profile* profile_; |
| 48 | 48 |
| 49 DISALLOW_COPY_AND_ASSIGN(SetMetroBrowserFlowLauncher); | 49 DISALLOW_COPY_AND_ASSIGN(SetMetroBrowserFlowLauncher); |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 void SetMetroBrowserFlowLauncher::Observe( | 52 void SetMetroBrowserFlowLauncher::Observe( |
| 53 int type, | 53 int type, |
| 54 const content::NotificationSource& source, | 54 const content::NotificationSource& source, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 81 | 81 |
| 82 if (show_status) { | 82 if (show_status) { |
| 83 startup_metric_utils::SetNonBrowserUIDisplayed(); | 83 startup_metric_utils::SetNonBrowserUIDisplayed(); |
| 84 SetMetroBrowserFlowLauncher::LaunchSoon(profile); | 84 SetMetroBrowserFlowLauncher::LaunchSoon(profile); |
| 85 } | 85 } |
| 86 | 86 |
| 87 return show_status; | 87 return show_status; |
| 88 } | 88 } |
| 89 | 89 |
| 90 } // namespace chrome | 90 } // namespace chrome |
| OLD | NEW |