OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/views/first_run_view_base.h" | 5 #include "chrome/browser/views/first_run_view_base.h" |
6 | 6 |
| 7 #include "app/l10n_util.h" |
7 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
8 #include "base/command_line.h" | 9 #include "base/command_line.h" |
9 #include "base/path_service.h" | 10 #include "base/path_service.h" |
10 #include "base/thread.h" | 11 #include "base/thread.h" |
11 #include "chrome/browser/browser_list.h" | 12 #include "chrome/browser/browser_list.h" |
12 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
13 #include "chrome/browser/first_run.h" | 14 #include "chrome/browser/first_run.h" |
14 #include "chrome/browser/metrics/user_metrics.h" | 15 #include "chrome/browser/metrics/user_metrics.h" |
15 #include "chrome/browser/shell_integration.h" | 16 #include "chrome/browser/shell_integration.h" |
16 #include "chrome/browser/views/standard_layout.h" | 17 #include "chrome/browser/views/standard_layout.h" |
17 #include "chrome/common/chrome_switches.h" | 18 #include "chrome/common/chrome_switches.h" |
18 #include "chrome/common/l10n_util.h" | |
19 #include "chrome/common/pref_names.h" | 19 #include "chrome/common/pref_names.h" |
20 #include "chrome/common/pref_service.h" | 20 #include "chrome/common/pref_service.h" |
21 #include "chrome/views/background.h" | 21 #include "chrome/views/background.h" |
22 #include "chrome/views/controls/button/checkbox.h" | 22 #include "chrome/views/controls/button/checkbox.h" |
23 #include "chrome/views/controls/image_view.h" | 23 #include "chrome/views/controls/image_view.h" |
24 #include "chrome/views/controls/label.h" | 24 #include "chrome/views/controls/label.h" |
25 #include "chrome/views/controls/throbber.h" | 25 #include "chrome/views/controls/throbber.h" |
26 #include "chrome/views/controls/separator.h" | 26 #include "chrome/views/controls/separator.h" |
27 #include "chrome/views/window/client_view.h" | 27 #include "chrome/views/window/client_view.h" |
28 #include "chrome/views/window/window.h" | 28 #include "chrome/views/window/window.h" |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 } | 183 } |
184 | 184 |
185 bool FirstRunViewBase::SetDefaultBrowser() { | 185 bool FirstRunViewBase::SetDefaultBrowser() { |
186 UserMetrics::RecordAction(L"FirstRun_Do_DefBrowser", profile_); | 186 UserMetrics::RecordAction(L"FirstRun_Do_DefBrowser", profile_); |
187 return ShellIntegration::SetAsDefaultBrowser(); | 187 return ShellIntegration::SetAsDefaultBrowser(); |
188 } | 188 } |
189 | 189 |
190 bool FirstRunViewBase::FirstRunComplete() { | 190 bool FirstRunViewBase::FirstRunComplete() { |
191 return FirstRun::CreateSentinel(); | 191 return FirstRun::CreateSentinel(); |
192 } | 192 } |
OLD | NEW |