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

Unified Diff: chrome/browser/web_applications/web_app.cc

Issue 13864015: Move app launcher and chrome apps shortcut strings into the installer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@migrate_app_id_fix
Patch Set: rebase, move app launcher and chrome app strings into the installer 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/web_applications/web_app.cc
diff --git a/chrome/browser/web_applications/web_app.cc b/chrome/browser/web_applications/web_app.cc
index a70399b17c9b2dd94cf2066b3689ab473c47478c..e04a5530aaf1f051065c59a1570e057f706523a7 100644
--- a/chrome/browser/web_applications/web_app.cc
+++ b/chrome/browser/web_applications/web_app.cc
@@ -15,6 +15,7 @@
#include "chrome/common/chrome_version_info.h"
#include "chrome/common/extensions/extension.h"
#include "chrome/common/url_constants.h"
+#include "chrome/installer/util/browser_distribution.h"
#include "content/public/browser/browser_thread.h"
#include "extensions/common/constants.h"
#include "grit/chromium_strings.h"
@@ -229,10 +230,8 @@ std::string GetWMClassFromAppName(std::string app_name) {
#endif
string16 GetAppShortcutsSubdirName() {
gab 2013/05/15 21:26:38 You shouldn't need this method, just use ShellUtil
calamity 2013/08/27 07:59:35 As far as I'm aware, I can't use BrowserDistributi
gab 2013/08/28 19:52:27 Ah, right, installer_util target is linked on non-
calamity 2013/09/20 05:54:52 It didn't work on linux. The installer_util target
- chrome::VersionInfo::Channel channel = chrome::VersionInfo::GetChannel();
- if (channel == chrome::VersionInfo::CHANNEL_CANARY)
- return l10n_util::GetStringUTF16(IDS_APP_SHORTCUTS_SUBDIR_NAME_CANARY);
- return l10n_util::GetStringUTF16(IDS_APP_SHORTCUTS_SUBDIR_NAME);
+ BrowserDistribution* dist = BrowserDistribution::GetDistribution();
+ return dist->GetAppShortcutsSubdirName();
}
} // namespace web_app

Powered by Google App Engine
This is Rietveld 408576698