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

Unified 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: Greg's nits. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/first_run/upgrade_util_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/first_run/upgrade_util_win.h
diff --git a/chrome/browser/first_run/upgrade_util_win.h b/chrome/browser/first_run/upgrade_util_win.h
index c5a5d5c0d13939c30c405293cffac10b6cff2709..c67e1d0cc032a88b14deca5e767b449bbebe137b 100644
--- a/chrome/browser/first_run/upgrade_util_win.h
+++ b/chrome/browser/first_run/upgrade_util_win.h
@@ -16,6 +16,13 @@ namespace upgrade_util {
// is no new_chrome.exe or the swap fails the return is false;
bool SwapNewChromeExeIfPresent();
+// Returns true if the currently running chrome.exe has been renamed to
+// old_chrome.exe. This means that the running executable is out of date and
+// has been renamed by the in-use update process. old_chrome.exe shouldn't
+// continue on and run as the browser process since it may end up launching
+// newer chrome.exes as child processes resulting in a version mismatch.
+bool IsRunningOldChrome();
+
// Combines the two methods, RelaunchChromeBrowser and
// SwapNewChromeExeIfPresent, to perform the rename and relaunch of
// the browser. Note that relaunch does NOT exit the existing browser process.
« no previous file with comments | « no previous file | chrome/browser/first_run/upgrade_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698