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/startup_browser_creator_impl.h" | 5 #include "chrome/browser/ui/startup/startup_browser_creator_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 #endif | 106 #endif |
107 | 107 |
108 #if defined(OS_WIN) | 108 #if defined(OS_WIN) |
109 #include "base/win/windows_version.h" | 109 #include "base/win/windows_version.h" |
110 #include "chrome/browser/apps/app_launch_for_metro_restart_win.h" | 110 #include "chrome/browser/apps/app_launch_for_metro_restart_win.h" |
111 #include "chrome/browser/search_engines/template_url_service_factory.h" | 111 #include "chrome/browser/search_engines/template_url_service_factory.h" |
112 #include "chrome/browser/shell_integration_win.h" | 112 #include "chrome/browser/shell_integration_win.h" |
113 #endif | 113 #endif |
114 | 114 |
115 #if defined(ENABLE_RLZ) | 115 #if defined(ENABLE_RLZ) |
116 #include "components/rlz/rlz_tracker.h" | 116 #include "components/rlz/rlz_tracker.h" // nogncheck |
117 #endif | 117 #endif |
118 | 118 |
119 using content::ChildProcessSecurityPolicy; | 119 using content::ChildProcessSecurityPolicy; |
120 using content::WebContents; | 120 using content::WebContents; |
121 using extensions::Extension; | 121 using extensions::Extension; |
122 | 122 |
123 namespace { | 123 namespace { |
124 | 124 |
125 // Utility functions ---------------------------------------------------------- | 125 // Utility functions ---------------------------------------------------------- |
126 | 126 |
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
992 #if defined(OS_WIN) | 992 #if defined(OS_WIN) |
993 TriggeredProfileResetter* triggered_profile_resetter = | 993 TriggeredProfileResetter* triggered_profile_resetter = |
994 TriggeredProfileResetterFactory::GetForBrowserContext(profile_); | 994 TriggeredProfileResetterFactory::GetForBrowserContext(profile_); |
995 // TriggeredProfileResetter instance will be nullptr for incognito profiles. | 995 // TriggeredProfileResetter instance will be nullptr for incognito profiles. |
996 if (triggered_profile_resetter) { | 996 if (triggered_profile_resetter) { |
997 has_reset_trigger = triggered_profile_resetter->HasResetTrigger(); | 997 has_reset_trigger = triggered_profile_resetter->HasResetTrigger(); |
998 } | 998 } |
999 #endif // defined(OS_WIN) | 999 #endif // defined(OS_WIN) |
1000 return has_reset_trigger; | 1000 return has_reset_trigger; |
1001 } | 1001 } |
OLD | NEW |