| OLD | NEW |
| 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ | 5 #ifndef CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ |
| 6 #define CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ | 6 #define CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 // SwapNewChromeExeIfPresent, to perform the rename and relaunch of | 238 // SwapNewChromeExeIfPresent, to perform the rename and relaunch of |
| 239 // the browser. Note that relaunch does NOT exit the existing browser process. | 239 // the browser. Note that relaunch does NOT exit the existing browser process. |
| 240 // If this is called before message loop is executed, simply exit the main | 240 // If this is called before message loop is executed, simply exit the main |
| 241 // function. If browser is already running, you will need to exit it. | 241 // function. If browser is already running, you will need to exit it. |
| 242 static bool DoUpgradeTasks(const CommandLine& command_line); | 242 static bool DoUpgradeTasks(const CommandLine& command_line); |
| 243 | 243 |
| 244 // Shows a modal dialog asking the user to give chrome another try. See | 244 // Shows a modal dialog asking the user to give chrome another try. See |
| 245 // above for the possible outcomes of the function. This is an experimental, | 245 // above for the possible outcomes of the function. This is an experimental, |
| 246 // non-localized dialog. | 246 // non-localized dialog. |
| 247 // |version| can be 0, 1 or 2 and selects what strings to present. | 247 // |version| can be 0, 1 or 2 and selects what strings to present. |
| 248 static TryResult ShowTryChromeDialog(size_t version); | 248 // |process_singleton| needs to be valid and it will be locked while |
| 249 // the dialog is shown. |
| 250 static TryResult ShowTryChromeDialog(size_t version, |
| 251 ProcessSingleton* process_singleton); |
| 249 #endif // OS_WIN | 252 #endif // OS_WIN |
| 250 | 253 |
| 251 // Launches chrome again simulating a 'user' launch. If chrome could not | 254 // Launches chrome again simulating a 'user' launch. If chrome could not |
| 252 // be launched the return is false. | 255 // be launched the return is false. |
| 253 static bool RelaunchChromeBrowser(const CommandLine& command_line); | 256 static bool RelaunchChromeBrowser(const CommandLine& command_line); |
| 254 | 257 |
| 255 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) | 258 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| 256 static void SaveLastModifiedTimeOfExe(); | 259 static void SaveLastModifiedTimeOfExe(); |
| 257 #endif | 260 #endif |
| 258 | 261 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 virtual void ImportCompleted() OVERRIDE; | 317 virtual void ImportCompleted() OVERRIDE; |
| 315 virtual void ImportCanceled() OVERRIDE; | 318 virtual void ImportCanceled() OVERRIDE; |
| 316 | 319 |
| 317 bool loop_running_; | 320 bool loop_running_; |
| 318 int import_result_; | 321 int import_result_; |
| 319 | 322 |
| 320 DISALLOW_COPY_AND_ASSIGN(FirstRunImportObserver); | 323 DISALLOW_COPY_AND_ASSIGN(FirstRunImportObserver); |
| 321 }; | 324 }; |
| 322 | 325 |
| 323 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ | 326 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ |
| OLD | NEW |