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

Unified Diff: chrome/browser/shell_integration_win.cc

Issue 15255004: Refactor of BrowserDistribution. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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/browser/shell_integration_win.cc
diff --git a/chrome/browser/shell_integration_win.cc b/chrome/browser/shell_integration_win.cc
index fb1bd643b7d061084fed2ec030ee51c53bc17a58..cd36c11d77805347dbdc35e337c49800c28647c8 100644
--- a/chrome/browser/shell_integration_win.cc
+++ b/chrome/browser/shell_integration_win.cc
@@ -368,7 +368,8 @@ string16 ShellIntegration::GetChromiumIconLocation() {
return ShellUtil::FormatIconLocation(
chrome_exe.value(),
- BrowserDistribution::GetDistribution()->GetIconIndex());
+ BrowserDistribution::GetDistribution()->
+ GetShortcutInfo(BrowserDistribution::SHORTCUT_CHROME).icon_index);
}
void ShellIntegration::MigrateChromiumShortcuts() {
@@ -511,7 +512,8 @@ base::FilePath ShellIntegration::GetStartMenuShortcut(
base::DIR_START_MENU,
};
BrowserDistribution* dist = BrowserDistribution::GetDistribution();
- string16 shortcut_name(dist->GetAppShortCutName());
+ string16 shortcut_name(
+ dist->GetShortcutInfo(BrowserDistribution::SHORTCUT_CHROME).name);
base::FilePath shortcut;
// Check both the common and the per-user Start Menu folders for system-level

Powered by Google App Engine
This is Rietveld 408576698