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

Unified Diff: chrome/installer/util/google_chrome_sxs_distribution.cc

Issue 2791593002: Allow installer::GetLocalizedString to return mode-specific strings. (Closed)
Patch Set: Created 3 years, 9 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/google_chrome_sxs_distribution.cc
diff --git a/chrome/installer/util/google_chrome_sxs_distribution.cc b/chrome/installer/util/google_chrome_sxs_distribution.cc
deleted file mode 100644
index 72688d413f006d4a1ddc9f7896711134f1b2892f..0000000000000000000000000000000000000000
--- a/chrome/installer/util/google_chrome_sxs_distribution.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-//
-// This file defines implementation of GoogleChromeSxSDistribution.
-
-#include "chrome/installer/util/google_chrome_sxs_distribution.h"
-
-#include "base/command_line.h"
-#include "base/logging.h"
-#include "chrome/installer/util/installer_util_strings.h"
-#include "chrome/installer/util/updating_app_registration_data.h"
-
-namespace {
-
-const wchar_t kChromeSxSGuid[] = L"{4ea16ac7-fd5a-47c3-875b-dbf4a2008c20}";
-
-} // namespace
-
-GoogleChromeSxSDistribution::GoogleChromeSxSDistribution()
- : GoogleChromeDistribution(std::unique_ptr<AppRegistrationData>(
- new UpdatingAppRegistrationData(kChromeSxSGuid))) {}
-
-base::string16 GoogleChromeSxSDistribution::GetShortcutName() {
- return installer::GetLocalizedString(IDS_SXS_SHORTCUT_NAME_BASE);
-}
-
-base::string16 GoogleChromeSxSDistribution::GetStartMenuShortcutSubfolder(
- Subfolder subfolder_type) {
- switch (subfolder_type) {
- case SUBFOLDER_APPS:
- return installer::GetLocalizedString(
- IDS_APP_SHORTCUTS_SUBDIR_NAME_CANARY_BASE);
- default:
- DCHECK_EQ(subfolder_type, SUBFOLDER_CHROME);
- return GetShortcutName();
- }
-}

Powered by Google App Engine
This is Rietveld 408576698