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

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: 2012 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 93ce643ea1dc565fa90da53d173681705776dd05..cc08f9c6f2b388a11fdcefc20d2a417205d88a92 100644
--- a/chrome/installer/util/shell_util.h
+++ b/chrome/installer/util/shell_util.h
@@ -252,6 +252,14 @@ class ShellUtil {
const string16& suffix,
RegistrationConfirmationLevel confirmation_level);
+ // 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 in the Windows default programs list
+ // 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