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 <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "apps/app_restore_service.h" | 10 #include "apps/app_restore_service.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "chrome/browser/browser_process.h" | 29 #include "chrome/browser/browser_process.h" |
30 #include "chrome/browser/chrome_notification_types.h" | 30 #include "chrome/browser/chrome_notification_types.h" |
31 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" | 31 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
32 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h" | 32 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h" |
33 #include "chrome/browser/defaults.h" | 33 #include "chrome/browser/defaults.h" |
34 #include "chrome/browser/extensions/extension_creator.h" | 34 #include "chrome/browser/extensions/extension_creator.h" |
35 #include "chrome/browser/extensions/extension_service.h" | 35 #include "chrome/browser/extensions/extension_service.h" |
36 #include "chrome/browser/extensions/launch_util.h" | 36 #include "chrome/browser/extensions/launch_util.h" |
37 #include "chrome/browser/extensions/pack_extension_job.h" | 37 #include "chrome/browser/extensions/pack_extension_job.h" |
38 #include "chrome/browser/first_run/first_run.h" | 38 #include "chrome/browser/first_run/first_run.h" |
39 #include "chrome/browser/google/google_util.h" | |
40 #include "chrome/browser/infobars/infobar_service.h" | 39 #include "chrome/browser/infobars/infobar_service.h" |
41 #include "chrome/browser/net/predictor.h" | 40 #include "chrome/browser/net/predictor.h" |
42 #include "chrome/browser/notifications/desktop_notification_service.h" | 41 #include "chrome/browser/notifications/desktop_notification_service.h" |
43 #include "chrome/browser/performance_monitor/startup_timer.h" | 42 #include "chrome/browser/performance_monitor/startup_timer.h" |
44 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 43 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
45 #include "chrome/browser/prefs/session_startup_pref.h" | 44 #include "chrome/browser/prefs/session_startup_pref.h" |
46 #include "chrome/browser/profiles/profile.h" | 45 #include "chrome/browser/profiles/profile.h" |
47 #include "chrome/browser/profiles/profile_io_data.h" | 46 #include "chrome/browser/profiles/profile_io_data.h" |
48 #include "chrome/browser/rlz/rlz.h" | 47 #include "chrome/browser/rlz/rlz.h" |
49 #include "chrome/browser/sessions/session_restore.h" | 48 #include "chrome/browser/sessions/session_restore.h" |
(...skipping 24 matching lines...) Expand all Loading... |
74 #include "chrome/browser/ui/webui/ntp/core_app_launcher_handler.h" | 73 #include "chrome/browser/ui/webui/ntp/core_app_launcher_handler.h" |
75 #include "chrome/common/chrome_constants.h" | 74 #include "chrome/common/chrome_constants.h" |
76 #include "chrome/common/chrome_paths.h" | 75 #include "chrome/common/chrome_paths.h" |
77 #include "chrome/common/chrome_result_codes.h" | 76 #include "chrome/common/chrome_result_codes.h" |
78 #include "chrome/common/chrome_switches.h" | 77 #include "chrome/common/chrome_switches.h" |
79 #include "chrome/common/chrome_version_info.h" | 78 #include "chrome/common/chrome_version_info.h" |
80 #include "chrome/common/extensions/extension_constants.h" | 79 #include "chrome/common/extensions/extension_constants.h" |
81 #include "chrome/common/pref_names.h" | 80 #include "chrome/common/pref_names.h" |
82 #include "chrome/common/url_constants.h" | 81 #include "chrome/common/url_constants.h" |
83 #include "chrome/installer/util/browser_distribution.h" | 82 #include "chrome/installer/util/browser_distribution.h" |
| 83 #include "components/google/core/browser/google_util.h" |
84 #include "content/public/browser/child_process_security_policy.h" | 84 #include "content/public/browser/child_process_security_policy.h" |
85 #include "content/public/browser/dom_storage_context.h" | 85 #include "content/public/browser/dom_storage_context.h" |
86 #include "content/public/browser/notification_observer.h" | 86 #include "content/public/browser/notification_observer.h" |
87 #include "content/public/browser/notification_registrar.h" | 87 #include "content/public/browser/notification_registrar.h" |
88 #include "content/public/browser/storage_partition.h" | 88 #include "content/public/browser/storage_partition.h" |
89 #include "content/public/browser/web_contents.h" | 89 #include "content/public/browser/web_contents.h" |
90 #include "extensions/browser/extension_prefs.h" | 90 #include "extensions/browser/extension_prefs.h" |
91 #include "extensions/browser/extension_registry.h" | 91 #include "extensions/browser/extension_registry.h" |
92 #include "extensions/browser/extension_system.h" | 92 #include "extensions/browser/extension_system.h" |
93 #include "extensions/common/constants.h" | 93 #include "extensions/common/constants.h" |
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
926 // behavior is desired because completing or skipping the sync promo | 926 // behavior is desired because completing or skipping the sync promo |
927 // causes a redirect to the NTP. | 927 // causes a redirect to the NTP. |
928 if (!startup_urls->empty() && | 928 if (!startup_urls->empty() && |
929 startup_urls->at(0) == GURL(chrome::kChromeUINewTabURL)) | 929 startup_urls->at(0) == GURL(chrome::kChromeUINewTabURL)) |
930 startup_urls->at(0) = sync_promo_url; | 930 startup_urls->at(0) = sync_promo_url; |
931 else | 931 else |
932 startup_urls->insert(startup_urls->begin(), sync_promo_url); | 932 startup_urls->insert(startup_urls->begin(), sync_promo_url); |
933 } | 933 } |
934 } | 934 } |
935 } | 935 } |
OLD | NEW |