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

Side by Side Diff: chrome/browser/first_run/first_run.h

Issue 6625037: Make the toast more reliable and less dangerous... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 9 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) 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
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 static TryResult ShowTryChromeDialog(size_t version,
249 ProcessSingleton* process_singleton);
Finnur 2011/03/07 22:35:10 Please document the new param.
249 #endif // OS_WIN 250 #endif // OS_WIN
250 251
251 // Launches chrome again simulating a 'user' launch. If chrome could not 252 // Launches chrome again simulating a 'user' launch. If chrome could not
252 // be launched the return is false. 253 // be launched the return is false.
253 static bool RelaunchChromeBrowser(const CommandLine& command_line); 254 static bool RelaunchChromeBrowser(const CommandLine& command_line);
254 255
255 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) 256 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
256 static void SaveLastModifiedTimeOfExe(); 257 static void SaveLastModifiedTimeOfExe();
257 #endif 258 #endif
258 259
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 virtual void ImportCompleted() OVERRIDE; 315 virtual void ImportCompleted() OVERRIDE;
315 virtual void ImportCanceled() OVERRIDE; 316 virtual void ImportCanceled() OVERRIDE;
316 317
317 bool loop_running_; 318 bool loop_running_;
318 int import_result_; 319 int import_result_;
319 320
320 DISALLOW_COPY_AND_ASSIGN(FirstRunImportObserver); 321 DISALLOW_COPY_AND_ASSIGN(FirstRunImportObserver);
321 }; 322 };
322 323
323 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ 324 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698