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 "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
10 #include "base/thread.h" | 10 #include "base/thread.h" |
11 #include "chrome/app/theme/theme_resources.h" | 11 #include "grit/theme_resources.h" |
12 #include "chrome/browser/browser_list.h" | 12 #include "chrome/browser/browser_list.h" |
13 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
14 #include "chrome/browser/first_run.h" | 14 #include "chrome/browser/first_run.h" |
15 #include "chrome/browser/metrics/user_metrics.h" | 15 #include "chrome/browser/metrics/user_metrics.h" |
16 #include "chrome/browser/shell_integration.h" | 16 #include "chrome/browser/shell_integration.h" |
17 #include "chrome/browser/views/standard_layout.h" | 17 #include "chrome/browser/views/standard_layout.h" |
18 #include "chrome/common/chrome_switches.h" | 18 #include "chrome/common/chrome_switches.h" |
19 #include "chrome/common/l10n_util.h" | 19 #include "chrome/common/l10n_util.h" |
20 #include "chrome/common/pref_names.h" | 20 #include "chrome/common/pref_names.h" |
21 #include "chrome/common/pref_service.h" | 21 #include "chrome/common/pref_service.h" |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 } | 184 } |
185 | 185 |
186 bool FirstRunViewBase::SetDefaultBrowser() { | 186 bool FirstRunViewBase::SetDefaultBrowser() { |
187 UserMetrics::RecordAction(L"FirstRun_Do_DefBrowser", profile_); | 187 UserMetrics::RecordAction(L"FirstRun_Do_DefBrowser", profile_); |
188 return ShellIntegration::SetAsDefaultBrowser(); | 188 return ShellIntegration::SetAsDefaultBrowser(); |
189 } | 189 } |
190 | 190 |
191 bool FirstRunViewBase::FirstRunComplete() { | 191 bool FirstRunViewBase::FirstRunComplete() { |
192 return FirstRun::CreateSentinel(); | 192 return FirstRun::CreateSentinel(); |
193 } | 193 } |
OLD | NEW |