Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1346)

Side by Side Diff: chrome/browser/first_run_gtk.cc

Issue 2808006: Allow randomized search engines in selection dialog.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "app/app_switches.h" 7 #include "app/app_switches.h"
8 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.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 "chrome/browser/gtk/first_run_dialog.h" 13 #include "chrome/browser/gtk/first_run_dialog.h"
14 #include "chrome/browser/profile_manager.h" 14 #include "chrome/browser/profile_manager.h"
15 #include "chrome/browser/shell_integration.h" 15 #include "chrome/browser/shell_integration.h"
16 #include "chrome/common/chrome_switches.h" 16 #include "chrome/common/chrome_switches.h"
17 #include "chrome/common/pref_names.h" 17 #include "chrome/common/pref_names.h"
18 #include "chrome/common/result_codes.h" 18 #include "chrome/common/result_codes.h"
19 #include "chrome/installer/util/google_update_settings.h" 19 #include "chrome/installer/util/google_update_settings.h"
20 #include "chrome/installer/util/master_preferences.h" 20 #include "chrome/installer/util/master_preferences.h"
21 #include "chrome/installer/util/util_constants.h" 21 #include "chrome/installer/util/util_constants.h"
22 #include "googleurl/src/gurl.h" 22 #include "googleurl/src/gurl.h"
23 23
24 bool OpenFirstRunDialog(Profile* profile, bool homepage_defined, 24 bool OpenFirstRunDialog(Profile* profile, bool homepage_defined,
25 int import_items, 25 int import_items,
26 int dont_import_items, 26 int dont_import_items,
27 bool search_engine_experiment, 27 bool search_engine_experiment,
28 bool randomize_search_engine_experiment,
28 ProcessSingleton* process_singleton) { 29 ProcessSingleton* process_singleton) {
29 return FirstRunDialog::Show(profile, process_singleton); 30 return FirstRunDialog::Show(profile, process_singleton);
30 } 31 }
31 32
32 FilePath GetDefaultPrefFilePath(bool create_profile_dir, 33 FilePath GetDefaultPrefFilePath(bool create_profile_dir,
33 const FilePath& user_data_dir) { 34 const FilePath& user_data_dir) {
34 FilePath default_pref_dir = 35 FilePath default_pref_dir =
35 ProfileManager::GetDefaultProfileDir(user_data_dir); 36 ProfileManager::GetDefaultProfileDir(user_data_dir);
36 if (create_profile_dir) { 37 if (create_profile_dir) {
37 if (!file_util::PathExists(default_pref_dir)) { 38 if (!file_util::PathExists(default_pref_dir)) {
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 } 181 }
181 file_util::FileInfo exe_file_info; 182 file_util::FileInfo exe_file_info;
182 if (!file_util::GetFileInfo(exe_file_path, &exe_file_info)) { 183 if (!file_util::GetFileInfo(exe_file_path, &exe_file_info)) {
183 LOG(WARNING) << "Failed to get FileInfo object for FILE_EXE - " 184 LOG(WARNING) << "Failed to get FileInfo object for FILE_EXE - "
184 << exe_file_path.value(); 185 << exe_file_path.value();
185 return saved_last_modified_time_of_exe_; 186 return saved_last_modified_time_of_exe_;
186 } 187 }
187 return exe_file_info.last_modified.ToDoubleT(); 188 return exe_file_info.last_modified.ToDoubleT();
188 } 189 }
189 #endif // defined(OS_LINUX) && !defined(OS_CHROMEOS) 190 #endif // defined(OS_LINUX) && !defined(OS_CHROMEOS)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698