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" |
11 #include "apps/app_restore_service_factory.h" | 11 #include "apps/app_restore_service_factory.h" |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
16 #include "base/environment.h" | 16 #include "base/environment.h" |
17 #include "base/lazy_instance.h" | 17 #include "base/lazy_instance.h" |
18 #include "base/memory/scoped_ptr.h" | 18 #include "base/memory/scoped_ptr.h" |
19 #include "base/metrics/histogram.h" | 19 #include "base/metrics/histogram.h" |
20 #include "base/metrics/statistics_recorder.h" | 20 #include "base/metrics/statistics_recorder.h" |
21 #include "base/path_service.h" | |
22 #include "base/prefs/pref_service.h" | 21 #include "base/prefs/pref_service.h" |
23 #include "base/strings/string_number_conversions.h" | 22 #include "base/strings/string_number_conversions.h" |
24 #include "base/strings/string_split.h" | 23 #include "base/strings/string_split.h" |
25 #include "base/strings/string_util.h" | 24 #include "base/strings/string_util.h" |
26 #include "base/strings/utf_string_conversions.h" | 25 #include "base/strings/utf_string_conversions.h" |
27 #include "base/threading/thread_restrictions.h" | 26 #include "base/threading/thread_restrictions.h" |
28 #include "chrome/browser/apps/install_chrome_app.h" | 27 #include "chrome/browser/apps/install_chrome_app.h" |
29 #include "chrome/browser/auto_launch_trial.h" | 28 #include "chrome/browser/auto_launch_trial.h" |
30 #include "chrome/browser/browser_process.h" | 29 #include "chrome/browser/browser_process.h" |
31 #include "chrome/browser/chrome_notification_types.h" | 30 #include "chrome/browser/chrome_notification_types.h" |
(...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
906 // behavior is desired because completing or skipping the sync promo | 905 // behavior is desired because completing or skipping the sync promo |
907 // causes a redirect to the NTP. | 906 // causes a redirect to the NTP. |
908 if (!startup_urls->empty() && | 907 if (!startup_urls->empty() && |
909 startup_urls->at(0) == GURL(chrome::kChromeUINewTabURL)) | 908 startup_urls->at(0) == GURL(chrome::kChromeUINewTabURL)) |
910 startup_urls->at(0) = sync_promo_url; | 909 startup_urls->at(0) = sync_promo_url; |
911 else | 910 else |
912 startup_urls->insert(startup_urls->begin(), sync_promo_url); | 911 startup_urls->insert(startup_urls->begin(), sync_promo_url); |
913 } | 912 } |
914 } | 913 } |
915 } | 914 } |
OLD | NEW |