| 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 25 matching lines...) Expand all Loading... |
| 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/infobars/infobar_service.h" | 39 #include "chrome/browser/infobars/infobar_service.h" |
| 40 #include "chrome/browser/net/predictor.h" | 40 #include "chrome/browser/net/predictor.h" |
| 41 #include "chrome/browser/notifications/desktop_notification_service.h" | 41 #include "chrome/browser/notifications/desktop_notification_service.h" |
| 42 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 42 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
| 43 #include "chrome/browser/prefs/session_startup_pref.h" | 43 #include "chrome/browser/prefs/session_startup_pref.h" |
| 44 #include "chrome/browser/profiles/profile.h" | 44 #include "chrome/browser/profiles/profile.h" |
| 45 #include "chrome/browser/profiles/profile_io_data.h" | 45 #include "chrome/browser/profiles/profile_io_data.h" |
| 46 #include "chrome/browser/rlz/rlz.h" | |
| 47 #include "chrome/browser/sessions/session_restore.h" | 46 #include "chrome/browser/sessions/session_restore.h" |
| 48 #include "chrome/browser/sessions/session_service.h" | 47 #include "chrome/browser/sessions/session_service.h" |
| 49 #include "chrome/browser/sessions/session_service_factory.h" | 48 #include "chrome/browser/sessions/session_service_factory.h" |
| 50 #include "chrome/browser/shell_integration.h" | 49 #include "chrome/browser/shell_integration.h" |
| 51 #include "chrome/browser/signin/signin_promo.h" | 50 #include "chrome/browser/signin/signin_promo.h" |
| 52 #include "chrome/browser/ui/app_list/app_list_service.h" | 51 #include "chrome/browser/ui/app_list/app_list_service.h" |
| 53 #include "chrome/browser/ui/browser_commands.h" | 52 #include "chrome/browser/ui/browser_commands.h" |
| 54 #include "chrome/browser/ui/browser_finder.h" | 53 #include "chrome/browser/ui/browser_finder.h" |
| 55 #include "chrome/browser/ui/browser_list.h" | 54 #include "chrome/browser/ui/browser_list.h" |
| 56 #include "chrome/browser/ui/browser_navigator.h" | 55 #include "chrome/browser/ui/browser_navigator.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 73 #include "chrome/common/chrome_paths.h" | 72 #include "chrome/common/chrome_paths.h" |
| 74 #include "chrome/common/chrome_result_codes.h" | 73 #include "chrome/common/chrome_result_codes.h" |
| 75 #include "chrome/common/chrome_switches.h" | 74 #include "chrome/common/chrome_switches.h" |
| 76 #include "chrome/common/chrome_version_info.h" | 75 #include "chrome/common/chrome_version_info.h" |
| 77 #include "chrome/common/extensions/extension_constants.h" | 76 #include "chrome/common/extensions/extension_constants.h" |
| 78 #include "chrome/common/extensions/extension_metrics.h" | 77 #include "chrome/common/extensions/extension_metrics.h" |
| 79 #include "chrome/common/url_constants.h" | 78 #include "chrome/common/url_constants.h" |
| 80 #include "chrome/grit/locale_settings.h" | 79 #include "chrome/grit/locale_settings.h" |
| 81 #include "chrome/installer/util/browser_distribution.h" | 80 #include "chrome/installer/util/browser_distribution.h" |
| 82 #include "components/google/core/browser/google_util.h" | 81 #include "components/google/core/browser/google_util.h" |
| 82 #include "components/rlz/rlz_tracker.h" |
| 83 #include "content/public/browser/child_process_security_policy.h" | 83 #include "content/public/browser/child_process_security_policy.h" |
| 84 #include "content/public/browser/dom_storage_context.h" | 84 #include "content/public/browser/dom_storage_context.h" |
| 85 #include "content/public/browser/notification_observer.h" | 85 #include "content/public/browser/notification_observer.h" |
| 86 #include "content/public/browser/notification_registrar.h" | 86 #include "content/public/browser/notification_registrar.h" |
| 87 #include "content/public/browser/storage_partition.h" | 87 #include "content/public/browser/storage_partition.h" |
| 88 #include "content/public/browser/web_contents.h" | 88 #include "content/public/browser/web_contents.h" |
| 89 #include "extensions/browser/extension_prefs.h" | 89 #include "extensions/browser/extension_prefs.h" |
| 90 #include "extensions/browser/extension_registry.h" | 90 #include "extensions/browser/extension_registry.h" |
| 91 #include "extensions/common/constants.h" | 91 #include "extensions/common/constants.h" |
| 92 #include "extensions/common/extension.h" | 92 #include "extensions/common/extension.h" |
| (...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 910 // behavior is desired because completing or skipping the sync promo | 910 // behavior is desired because completing or skipping the sync promo |
| 911 // causes a redirect to the NTP. | 911 // causes a redirect to the NTP. |
| 912 if (!startup_urls->empty() && | 912 if (!startup_urls->empty() && |
| 913 startup_urls->at(0) == GURL(chrome::kChromeUINewTabURL)) | 913 startup_urls->at(0) == GURL(chrome::kChromeUINewTabURL)) |
| 914 startup_urls->at(0) = sync_promo_url; | 914 startup_urls->at(0) = sync_promo_url; |
| 915 else | 915 else |
| 916 startup_urls->insert(startup_urls->begin(), sync_promo_url); | 916 startup_urls->insert(startup_urls->begin(), sync_promo_url); |
| 917 } | 917 } |
| 918 } | 918 } |
| 919 } | 919 } |
| OLD | NEW |