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

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

Issue 7215040: Fix relaunches on the Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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) 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_UPGRADE_UTIL_H_ 5 #ifndef CHROME_BROWSER_FIRST_RUN_UPGRADE_UTIL_H_
6 #define CHROME_BROWSER_FIRST_RUN_UPGRADE_UTIL_H_ 6 #define CHROME_BROWSER_FIRST_RUN_UPGRADE_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h"
10
11 #if !defined(OS_CHROMEOS)
12
9 class CommandLine; 13 class CommandLine;
10 14
11 namespace upgrade_util { 15 namespace upgrade_util {
12 16
17 // Launches Chrome again simulating a "user" launch. If Chrome could not be
18 // launched, returns false.
19 bool RelaunchChromeBrowser(const CommandLine& command_line);
20
21 #if !defined(OS_MACOSX)
22
13 void SetNewCommandLine(CommandLine* new_command_line); 23 void SetNewCommandLine(CommandLine* new_command_line);
14 24
15 // Launches a new instance of the browser if the current instance in persistent 25 // Launches a new instance of the browser if the current instance in persistent
16 // mode an upgrade is detected. 26 // mode an upgrade is detected.
17 void RelaunchChromeBrowserWithNewCommandLineIfNeeded(); 27 void RelaunchChromeBrowserWithNewCommandLineIfNeeded();
18 28
19 // Launches chrome again simulating a 'user' launch. If chrome could not be
20 // launched the return is false.
21 bool RelaunchChromeBrowser(const CommandLine& command_line);
22
23 // Windows: 29 // Windows:
24 // Checks if chrome_new.exe is present in the current instance's install. 30 // Checks if chrome_new.exe is present in the current instance's install.
25 // Linux: 31 // Linux:
26 // Checks if the last modified time of chrome is newer than that of the current 32 // Checks if the last modified time of chrome is newer than that of the current
27 // running instance. 33 // running instance.
28 bool IsUpdatePendingRestart(); 34 bool IsUpdatePendingRestart();
29 35
36 #endif // !defined(OS_MACOSX)
37
30 } // namespace upgrade_util 38 } // namespace upgrade_util
31 39
40 #endif // !defined(OS_CHROMEOS)
41
32 #endif // CHROME_BROWSER_FIRST_RUN_UPGRADE_UTIL_H_ 42 #endif // CHROME_BROWSER_FIRST_RUN_UPGRADE_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698