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

Unified Diff: chrome/installer/util/install_util.cc

Issue 10446111: Abstract suffixing logic away from GetApplicationName (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
Index: chrome/installer/util/install_util.cc
diff --git a/chrome/installer/util/install_util.cc b/chrome/installer/util/install_util.cc
index 69a58cbe4a9b0e4ae83df6b12cf33724ca998f62..9d740b7abefe5015748508317bd8146140e5380c 100644
--- a/chrome/installer/util/install_util.cc
+++ b/chrome/installer/util/install_util.cc
@@ -185,12 +185,12 @@ Version* InstallUtil::GetChromeVersion(BrowserDistribution* dist,
Version* ret = NULL;
if (result == ERROR_SUCCESS && !version_str.empty()) {
- VLOG(1) << "Existing " << dist->GetApplicationName()
+ VLOG(1) << "Existing " << dist->GetUnsuffixedAppName()
<< " version found " << version_str;
ret = Version::GetVersionFromString(WideToASCII(version_str));
} else {
DCHECK_EQ(ERROR_FILE_NOT_FOUND, result);
- VLOG(1) << "No existing " << dist->GetApplicationName()
+ VLOG(1) << "No existing " << dist->GetUnsuffixedAppName()
<< " install found.";
}
@@ -212,12 +212,12 @@ Version* InstallUtil::GetCriticalUpdateVersion(BrowserDistribution* dist,
Version* ret = NULL;
if (result == ERROR_SUCCESS && !version_str.empty()) {
- VLOG(1) << "Critical Update version for " << dist->GetApplicationName()
- << " found " << version_str;
+ VLOG(1) << "Critical Update version for "
+ << dist->GetUnsuffixedAppName() << " found " << version_str;
ret = Version::GetVersionFromString(WideToASCII(version_str));
} else {
DCHECK_EQ(ERROR_FILE_NOT_FOUND, result);
- VLOG(1) << "No existing " << dist->GetApplicationName()
+ VLOG(1) << "No existing " << dist->GetUnsuffixedAppName()
<< " install found.";
}

Powered by Google App Engine
This is Rietveld 408576698