| 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" |
| 11 #include "chrome/browser/ui/browser_finder.h" | 11 #include "chrome/browser/ui/browser_finder.h" |
| 12 #include "chrome/browser/ui/webui/set_as_default_browser_ui.h" | 12 #include "chrome/browser/ui/webui/set_as_default_browser_ui.h" |
| 13 #include "chrome/common/pref_names.h" | |
| 14 #include "components/startup_metric_utils/startup_metric_utils.h" | 13 #include "components/startup_metric_utils/startup_metric_utils.h" |
| 15 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
| 16 #include "content/public/browser/notification_service.h" | 15 #include "content/public/browser/notification_service.h" |
| 17 #include "content/public/browser/notification_types.h" | 16 #include "content/public/browser/notification_types.h" |
| 18 | 17 |
| 19 using content::BrowserThread; | 18 using content::BrowserThread; |
| 20 | 19 |
| 21 namespace { | 20 namespace { |
| 22 | 21 |
| 23 // Show the page prompting the user to make Chrome the default browser on | 22 // Show the page prompting the user to make Chrome the default browser on |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 80 |
| 82 if (show_status) { | 81 if (show_status) { |
| 83 startup_metric_utils::SetNonBrowserUIDisplayed(); | 82 startup_metric_utils::SetNonBrowserUIDisplayed(); |
| 84 SetMetroBrowserFlowLauncher::LaunchSoon(profile); | 83 SetMetroBrowserFlowLauncher::LaunchSoon(profile); |
| 85 } | 84 } |
| 86 | 85 |
| 87 return show_status; | 86 return show_status; |
| 88 } | 87 } |
| 89 | 88 |
| 90 } // namespace chrome | 89 } // namespace chrome |
| OLD | NEW |