| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 }; | 155 }; |
| 156 | 156 |
| 157 // Installs a task to do an extensions update check once the extensions system | 157 // Installs a task to do an extensions update check once the extensions system |
| 158 // is running. | 158 // is running. |
| 159 void DoDelayedInstallExtensions() { | 159 void DoDelayedInstallExtensions() { |
| 160 new FirstRunDelayedTasks(FirstRunDelayedTasks::INSTALL_EXTENSIONS); | 160 new FirstRunDelayedTasks(FirstRunDelayedTasks::INSTALL_EXTENSIONS); |
| 161 } | 161 } |
| 162 | 162 |
| 163 void DoDelayedInstallExtensionsIfNeeded( | 163 void DoDelayedInstallExtensionsIfNeeded( |
| 164 installer::MasterPreferences* install_prefs) { | 164 installer::MasterPreferences* install_prefs) { |
| 165 DictionaryValue* extensions = 0; | 165 base::DictionaryValue* extensions = 0; |
| 166 if (install_prefs->GetExtensionsBlock(&extensions)) { | 166 if (install_prefs->GetExtensionsBlock(&extensions)) { |
| 167 VLOG(1) << "Extensions block found in master preferences"; | 167 VLOG(1) << "Extensions block found in master preferences"; |
| 168 DoDelayedInstallExtensions(); | 168 DoDelayedInstallExtensions(); |
| 169 } | 169 } |
| 170 } | 170 } |
| 171 | 171 |
| 172 base::FilePath GetDefaultPrefFilePath(bool create_profile_dir, | 172 base::FilePath GetDefaultPrefFilePath(bool create_profile_dir, |
| 173 const base::FilePath& user_data_dir) { | 173 const base::FilePath& user_data_dir) { |
| 174 base::FilePath default_pref_dir = | 174 base::FilePath default_pref_dir = |
| 175 profiles::GetDefaultProfileDir(user_data_dir); | 175 profiles::GetDefaultProfileDir(user_data_dir); |
| (...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 821 SetShouldDoPersonalDataManagerFirstRun(); | 821 SetShouldDoPersonalDataManagerFirstRun(); |
| 822 | 822 |
| 823 internal::DoPostImportPlatformSpecificTasks(profile); | 823 internal::DoPostImportPlatformSpecificTasks(profile); |
| 824 } | 824 } |
| 825 | 825 |
| 826 uint16 auto_import_state() { | 826 uint16 auto_import_state() { |
| 827 return g_auto_import_state; | 827 return g_auto_import_state; |
| 828 } | 828 } |
| 829 | 829 |
| 830 } // namespace first_run | 830 } // namespace first_run |
| OLD | NEW |