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

Unified Diff: chrome/installer/util/shell_util.h

Issue 10446111: Abstract suffixing logic away from GetApplicationName (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use GetAppShortCutName() in logs Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/installer/util/shell_util.h
diff --git a/chrome/installer/util/shell_util.h b/chrome/installer/util/shell_util.h
index 4c0e732fe98a64c7a6165408ef41190a1aedee62..08d590b89a88bb40a34686944f632b6ce0d50062 100644
--- a/chrome/installer/util/shell_util.h
+++ b/chrome/installer/util/shell_util.h
@@ -230,6 +230,14 @@ class ShellUtil {
static string16 GetCurrentInstallationSuffix(BrowserDistribution* dist,
const string16& chrome_exe);
+ // Returns the application name of the program under |dist|.
+ // This application name will be suffixed as is appropriate for the current
+ // install.
+ // This is the name that is registered with Default Programs on Windows and
+ // that should thus be used to "make chrome default" and such.
+ static string16 GetApplicationName(BrowserDistribution* dist,
+ const string16& chrome_exe);
+
// Make Chrome the default browser. This function works by going through
// the url protocols and file associations that are related to general
// browsing, e.g. http, https, .html etc., and requesting to become the

Powered by Google App Engine
This is Rietveld 408576698