OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/first_run/first_run.h" | 5 #include "chrome/browser/first_run/first_run.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <shellapi.h> | 8 #include <shellapi.h> |
9 #include <shlobj.h> | 9 #include <shlobj.h> |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "chrome/browser/extensions/extension_updater.h" | 29 #include "chrome/browser/extensions/extension_updater.h" |
30 #include "chrome/browser/importer/importer.h" | 30 #include "chrome/browser/importer/importer.h" |
31 #include "chrome/browser/metrics/user_metrics.h" | 31 #include "chrome/browser/metrics/user_metrics.h" |
32 #include "chrome/browser/process_singleton.h" | 32 #include "chrome/browser/process_singleton.h" |
33 #include "chrome/browser/profiles/profile.h" | 33 #include "chrome/browser/profiles/profile.h" |
34 #include "chrome/browser/search_engines/template_url_model.h" | 34 #include "chrome/browser/search_engines/template_url_model.h" |
35 #include "chrome/browser/ui/views/first_run_search_engine_view.h" | 35 #include "chrome/browser/ui/views/first_run_search_engine_view.h" |
36 #include "chrome/common/chrome_constants.h" | 36 #include "chrome/common/chrome_constants.h" |
37 #include "chrome/common/chrome_switches.h" | 37 #include "chrome/common/chrome_switches.h" |
38 #include "chrome/common/notification_service.h" | 38 #include "chrome/common/notification_service.h" |
39 #include "chrome/common/pref_names.h" | |
40 #include "chrome/common/worker_thread_ticker.h" | 39 #include "chrome/common/worker_thread_ticker.h" |
41 #include "chrome/installer/util/browser_distribution.h" | 40 #include "chrome/installer/util/browser_distribution.h" |
42 #include "chrome/installer/util/google_update_constants.h" | 41 #include "chrome/installer/util/google_update_constants.h" |
43 #include "chrome/installer/util/google_update_settings.h" | 42 #include "chrome/installer/util/google_update_settings.h" |
44 #include "chrome/installer/util/install_util.h" | 43 #include "chrome/installer/util/install_util.h" |
45 #include "chrome/installer/util/shell_util.h" | 44 #include "chrome/installer/util/shell_util.h" |
46 #include "chrome/installer/util/util_constants.h" | 45 #include "chrome/installer/util/util_constants.h" |
47 #include "google_update_idl.h" | 46 #include "google_update_idl.h" |
48 #include "grit/chromium_strings.h" | 47 #include "grit/chromium_strings.h" |
49 #include "grit/generated_resources.h" | 48 #include "grit/generated_resources.h" |
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
855 | 854 |
856 Upgrade::TryResult Upgrade::ShowTryChromeDialog(size_t version) { | 855 Upgrade::TryResult Upgrade::ShowTryChromeDialog(size_t version) { |
857 if (version > 10000) { | 856 if (version > 10000) { |
858 // This is a test value. We want to make sure we exercise | 857 // This is a test value. We want to make sure we exercise |
859 // returning this early. See EarlyReturnTest test harness. | 858 // returning this early. See EarlyReturnTest test harness. |
860 return Upgrade::TD_NOT_NOW; | 859 return Upgrade::TD_NOT_NOW; |
861 } | 860 } |
862 TryChromeDialog td(version); | 861 TryChromeDialog td(version); |
863 return td.ShowModal(); | 862 return td.ShowModal(); |
864 } | 863 } |
OLD | NEW |