OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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.h" | 5 #include "chrome/browser/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 19 matching lines...) Expand all Loading... |
30 #include "chrome/common/chrome_switches.h" | 30 #include "chrome/common/chrome_switches.h" |
31 #include "chrome/common/notification_registrar.h" | 31 #include "chrome/common/notification_registrar.h" |
32 #include "chrome/common/notification_service.h" | 32 #include "chrome/common/notification_service.h" |
33 #include "chrome/common/notification_type.h" | 33 #include "chrome/common/notification_type.h" |
34 #include "chrome/common/pref_names.h" | 34 #include "chrome/common/pref_names.h" |
35 #include "chrome/browser/browser_process.h" | 35 #include "chrome/browser/browser_process.h" |
36 #include "chrome/browser/extensions/extensions_service.h" | 36 #include "chrome/browser/extensions/extensions_service.h" |
37 #include "chrome/browser/extensions/extension_updater.h" | 37 #include "chrome/browser/extensions/extension_updater.h" |
38 #include "chrome/browser/hang_monitor/hung_window_detector.h" | 38 #include "chrome/browser/hang_monitor/hung_window_detector.h" |
39 #include "chrome/browser/importer/importer.h" | 39 #include "chrome/browser/importer/importer.h" |
40 #include "chrome/browser/importer/importer_data_types.h" | 40 #include "chrome/common/importer_data_types.h" |
41 #include "chrome/browser/pref_service.h" | 41 #include "chrome/browser/pref_service.h" |
42 #include "chrome/browser/process_singleton.h" | 42 #include "chrome/browser/process_singleton.h" |
43 #include "chrome/browser/profile.h" | 43 #include "chrome/browser/profile.h" |
44 #include "chrome/browser/profile_manager.h" | 44 #include "chrome/browser/profile_manager.h" |
45 #include "chrome/browser/shell_integration.h" | 45 #include "chrome/browser/shell_integration.h" |
46 #include "chrome/browser/views/first_run_view.h" | 46 #include "chrome/browser/views/first_run_view.h" |
47 #include "chrome/common/chrome_paths.h" | 47 #include "chrome/common/chrome_paths.h" |
48 #include "chrome/common/result_codes.h" | 48 #include "chrome/common/result_codes.h" |
49 #include "chrome/installer/util/browser_distribution.h" | 49 #include "chrome/installer/util/browser_distribution.h" |
50 #include "chrome/installer/util/google_update_constants.h" | 50 #include "chrome/installer/util/google_update_constants.h" |
(...skipping 977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1028 | 1028 |
1029 Upgrade::TryResult Upgrade::ShowTryChromeDialog(size_t version) { | 1029 Upgrade::TryResult Upgrade::ShowTryChromeDialog(size_t version) { |
1030 if (version > 10000) { | 1030 if (version > 10000) { |
1031 // This is a test value. We want to make sure we exercise | 1031 // This is a test value. We want to make sure we exercise |
1032 // returning this early. See EarlyReturnTest test harness. | 1032 // returning this early. See EarlyReturnTest test harness. |
1033 return Upgrade::TD_NOT_NOW; | 1033 return Upgrade::TD_NOT_NOW; |
1034 } | 1034 } |
1035 TryChromeDialog td; | 1035 TryChromeDialog td; |
1036 return td.ShowModal(); | 1036 return td.ShowModal(); |
1037 } | 1037 } |
OLD | NEW |