| 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 "base/win/windows_version.h" | 8 #include "base/win/windows_version.h" | 
| 9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" | 
| 10 #include "chrome/browser/shell_integration.h" | 10 #include "chrome/browser/shell_integration.h" | 
| 11 #include "chrome/browser/ui/browser.h" | 11 #include "chrome/browser/ui/browser.h" | 
| 12 #include "chrome/browser/ui/browser_finder.h" | 12 #include "chrome/browser/ui/browser_finder.h" | 
| 13 #include "chrome/browser/ui/webui/set_as_default_browser_ui.h" | 13 #include "chrome/browser/ui/webui/set_as_default_browser_ui.h" | 
| 14 #include "components/startup_metric_utils/startup_metric_utils.h" | 14 #include "components/startup_metric_utils/browser/startup_metric_utils.h" | 
| 15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" | 
| 16 #include "content/public/browser/notification_service.h" | 16 #include "content/public/browser/notification_service.h" | 
| 17 #include "content/public/browser/notification_types.h" | 17 #include "content/public/browser/notification_types.h" | 
| 18 | 18 | 
| 19 using content::BrowserThread; | 19 using content::BrowserThread; | 
| 20 | 20 | 
| 21 namespace { | 21 namespace { | 
| 22 | 22 | 
| 23 // Show the page prompting the user to make Chrome the default browser on | 23 // Show the page prompting the user to make Chrome the default browser on | 
| 24 // Windows 8 (which means becoming "the browser" in Metro mode). The page | 24 // Windows 8 (which means becoming "the browser" in Metro mode). The page | 
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 86 | 86 | 
| 87   if (show_status) { | 87   if (show_status) { | 
| 88     startup_metric_utils::SetNonBrowserUIDisplayed(); | 88     startup_metric_utils::SetNonBrowserUIDisplayed(); | 
| 89     SetMetroBrowserFlowLauncher::LaunchSoon(profile); | 89     SetMetroBrowserFlowLauncher::LaunchSoon(profile); | 
| 90   } | 90   } | 
| 91 | 91 | 
| 92   return show_status; | 92   return show_status; | 
| 93 } | 93 } | 
| 94 | 94 | 
| 95 }  // namespace chrome | 95 }  // namespace chrome | 
| OLD | NEW | 
|---|