OLD | NEW |
1 // Copyright (c) 2010 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 "app/app_switches.h" | 7 #include "app/app_switches.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
12 #include "base/process_util.h" | 12 #include "base/process_util.h" |
13 #include "base/string_piece.h" | 13 #include "base/string_piece.h" |
14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "chrome/browser/gtk/first_run_dialog.h" | |
18 #include "chrome/browser/shell_integration.h" | 17 #include "chrome/browser/shell_integration.h" |
| 18 #include "chrome/browser/ui/gtk/first_run_dialog.h" |
19 #include "chrome/common/chrome_switches.h" | 19 #include "chrome/common/chrome_switches.h" |
20 #include "chrome/common/result_codes.h" | 20 #include "chrome/common/result_codes.h" |
21 #include "chrome/installer/util/google_update_settings.h" | 21 #include "chrome/installer/util/google_update_settings.h" |
22 #include "googleurl/src/gurl.h" | 22 #include "googleurl/src/gurl.h" |
23 | 23 |
24 // TODO(port): This is just a piece of the silent import functionality from | 24 // TODO(port): This is just a piece of the silent import functionality from |
25 // ImportSettings for Windows. It would be nice to get the rest of it ported. | 25 // ImportSettings for Windows. It would be nice to get the rest of it ported. |
26 bool FirstRun::ImportBookmarks(const FilePath& import_bookmarks_path) { | 26 bool FirstRun::ImportBookmarks(const FilePath& import_bookmarks_path) { |
27 const CommandLine& cmdline = *CommandLine::ForCurrentProcess(); | 27 const CommandLine& cmdline = *CommandLine::ForCurrentProcess(); |
28 CommandLine import_cmd(cmdline.GetProgram()); | 28 CommandLine import_cmd(cmdline.GetProgram()); |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 bool FirstRun::IsOrganic() { | 92 bool FirstRun::IsOrganic() { |
93 // We treat all installs as organic. | 93 // We treat all installs as organic. |
94 return true; | 94 return true; |
95 } | 95 } |
96 | 96 |
97 // static | 97 // static |
98 void FirstRun::PlatformSetup() { | 98 void FirstRun::PlatformSetup() { |
99 // Things that Windows does here (creating a desktop icon, for example) are | 99 // Things that Windows does here (creating a desktop icon, for example) are |
100 // handled at install time on Linux. | 100 // handled at install time on Linux. |
101 } | 101 } |
OLD | NEW |