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

Unified Diff: chrome/installer/setup/install.cc

Issue 2253323002: Add a Canary-specific icon in VisualElementsManifest.xml (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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/setup/install.cc
diff --git a/chrome/installer/setup/install.cc b/chrome/installer/setup/install.cc
index d7d2351ad592e91beeedde6cd0be56feb3c7f66c..862534c48336fd5b75f66ec67aa112bffe3944de 100644
--- a/chrome/installer/setup/install.cc
+++ b/chrome/installer/setup/install.cc
@@ -43,7 +43,6 @@
#include "chrome/installer/util/work_item.h"
#include "chrome/installer/util/work_item_list.h"
-
namespace {
void LogShortcutOperation(ShellUtil::ShortcutLocation location,
@@ -390,9 +389,9 @@ bool CreateVisualElementsManifest(const base::FilePath& src_path,
"xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>\r\n"
" <VisualElements\r\n"
" ShowNameOnSquare150x150Logo='on'\r\n"
- " Square150x150Logo='%ls\\Logo.png'\r\n"
- " Square70x70Logo='%ls\\SmallLogo.png'\r\n"
- " Square44x44Logo='%ls\\SmallLogo.png'\r\n"
+ " Square150x150Logo='%ls\\Logo%ls.png'\r\n"
+ " Square70x70Logo='%ls\\SmallLogo%ls.png'\r\n"
+ " Square44x44Logo='%ls\\SmallLogo%ls.png'\r\n"
" ForegroundText='light'\r\n"
" BackgroundColor='#212121'/>\r\n"
"</Application>\r\n";
@@ -408,9 +407,11 @@ bool CreateVisualElementsManifest(const base::FilePath& src_path,
EscapeXmlAttributeValueInSingleQuotes(&display_name);
// Fill the manifest with the desired values.
- base::string16 manifest16(
- base::StringPrintf(manifest_template.c_str(), elements_dir.c_str(),
- elements_dir.c_str(), elements_dir.c_str()));
+ const base::char16* canary_str =
+ InstallUtil::IsChromeSxSProcess() ? L"Canary" : L"";
scottmg 2016/08/24 20:35:41 Did you want GOOGLE_CHROME_BRANDED around this? It
grt (UTC plus 2) 2016/08/25 10:22:56 Naah. I think it'd be better for CheckIsChromeSxSP
+ base::string16 manifest16(base::StringPrintf(
+ manifest_template.c_str(), elements_dir.c_str(), canary_str,
+ elements_dir.c_str(), canary_str, elements_dir.c_str(), canary_str));
// Write the manifest to |src_path|.
const std::string manifest(base::UTF16ToUTF8(manifest16));

Powered by Google App Engine
This is Rietveld 408576698