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/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 |
11 #include <set> | 11 #include <set> |
12 #include <sstream> | 12 #include <sstream> |
13 | 13 |
14 // TODO(port): trim this include list once first run has been refactored fully. | 14 // TODO(port): trim this include list once first run has been refactored fully. |
15 #include "app/app_switches.h" | 15 #include "app/app_switches.h" |
16 #include "app/l10n_util.h" | 16 #include "app/l10n_util.h" |
17 #include "app/l10n_util_win.h" | |
18 #include "app/resource_bundle.h" | 17 #include "app/resource_bundle.h" |
19 #include "base/command_line.h" | 18 #include "base/command_line.h" |
20 #include "base/file_util.h" | 19 #include "base/file_util.h" |
21 #include "base/logging.h" | 20 #include "base/logging.h" |
22 #include "base/object_watcher.h" | 21 #include "base/object_watcher.h" |
23 #include "base/path_service.h" | 22 #include "base/path_service.h" |
24 #include "base/process.h" | 23 #include "base/process.h" |
25 #include "base/process_util.h" | 24 #include "base/process_util.h" |
26 #include "base/registry.h" | 25 #include "base/registry.h" |
27 #include "base/scoped_comptr_win.h" | 26 #include "base/scoped_comptr_win.h" |
(...skipping 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1054 | 1053 |
1055 Upgrade::TryResult Upgrade::ShowTryChromeDialog(size_t version) { | 1054 Upgrade::TryResult Upgrade::ShowTryChromeDialog(size_t version) { |
1056 if (version > 10000) { | 1055 if (version > 10000) { |
1057 // This is a test value. We want to make sure we exercise | 1056 // This is a test value. We want to make sure we exercise |
1058 // returning this early. See EarlyReturnTest test harness. | 1057 // returning this early. See EarlyReturnTest test harness. |
1059 return Upgrade::TD_NOT_NOW; | 1058 return Upgrade::TD_NOT_NOW; |
1060 } | 1059 } |
1061 TryChromeDialog td; | 1060 TryChromeDialog td; |
1062 return td.ShowModal(); | 1061 return td.ShowModal(); |
1063 } | 1062 } |
OLD | NEW |