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

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

Issue 274453010: Prototype fix for version shear across updates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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
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_WIN_H_ 5 #ifndef CHROME_BROWSER_FIRST_RUN_UPGRADE_UTIL_WIN_H_
6 #define CHROME_BROWSER_FIRST_RUN_UPGRADE_UTIL_WIN_H_ 6 #define CHROME_BROWSER_FIRST_RUN_UPGRADE_UTIL_WIN_H_
7 7
8 namespace base { 8 namespace base {
9 class CommandLine; 9 class CommandLine;
10 } 10 }
11 11
12 namespace upgrade_util { 12 namespace upgrade_util {
13 13
14 // If the new_chrome.exe exists (placed by the installer then is swapped 14 // If the new_chrome.exe exists (placed by the installer then is swapped
15 // to chrome.exe and the old chrome is renamed to old_chrome.exe. If there 15 // to chrome.exe and the old chrome is renamed to old_chrome.exe. If there
16 // is no new_chrome.exe or the swap fails the return is false; 16 // is no new_chrome.exe or the swap fails the return is false;
17 bool SwapNewChromeExeIfPresent(); 17 bool SwapNewChromeExeIfPresent();
18 18
19 // Returns true if the currently running chrome.exe has been renamed to
20 // old_chrome.exe. This means that the running executable is out of date and
21 // has been renamed by the in-use update process. old_chrome.exe shouldn't
22 // continue on and run as the browser process since it may end up launching
23 // newer chrome.exes as child processes resulting in a version mismatch.
24 bool IsRunningOldChrome();
25
19 // Combines the two methods, RelaunchChromeBrowser and 26 // Combines the two methods, RelaunchChromeBrowser and
20 // SwapNewChromeExeIfPresent, to perform the rename and relaunch of 27 // SwapNewChromeExeIfPresent, to perform the rename and relaunch of
21 // the browser. Note that relaunch does NOT exit the existing browser process. 28 // the browser. Note that relaunch does NOT exit the existing browser process.
22 // If this is called before message loop is executed, simply exit the main 29 // If this is called before message loop is executed, simply exit the main
23 // function. If browser is already running, you will need to exit it. 30 // function. If browser is already running, you will need to exit it.
24 bool DoUpgradeTasks(const base::CommandLine& command_line); 31 bool DoUpgradeTasks(const base::CommandLine& command_line);
25 32
26 } // namespace upgrade_util 33 } // namespace upgrade_util
27 34
28 #endif // CHROME_BROWSER_FIRST_RUN_UPGRADE_UTIL_WIN_H_ 35 #endif // CHROME_BROWSER_FIRST_RUN_UPGRADE_UTIL_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/first_run/upgrade_util_win.cc » ('j') | chrome/browser/first_run/upgrade_util_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698