Index: chrome/browser/sync/sync_ui_util.cc |
diff --git a/chrome/browser/sync/sync_ui_util.cc b/chrome/browser/sync/sync_ui_util.cc |
index 8b1a59f5195e251cfe440555a903f6d756ff2c14..1d3827a0104c616fa418e596f86aca53df352684 100644 |
--- a/chrome/browser/sync/sync_ui_util.cc |
+++ b/chrome/browser/sync/sync_ui_util.cc |
@@ -43,6 +43,12 @@ namespace sync_ui_util { |
namespace { |
+bool IsChromeAwayFromChromeEnabled() { |
Nicolas Zea
2015/03/05 21:41:35
nit: use IsChromeDashboardEnabled instead
|
+ const std::string group_name = |
+ base::FieldTrialList::FindFullName("ChromeDashboard"); |
Nicolas Zea
2015/03/05 21:41:35
It's good style to #include any libraries you depe
|
+ return group_name == "Enabled"; |
+} |
+ |
// Returns the message that should be displayed when the user is authenticated |
// and can connect to the sync server. If the user hasn't yet authenticated, an |
// empty string is returned. |
@@ -88,6 +94,12 @@ base::string16 GetSyncedStateStatusLabel(ProfileSyncService* service, |
IDS_SYNC_ACCOUNT_SYNCING_TO_USER, |
user_name); |
case WITH_HTML: |
+ if (IsChromeAwayFromChromeEnabled()) { |
+ return l10n_util::GetStringFUTF16( |
+ IDS_SYNC_ACCOUNT_SYNCING_TO_USER_WITH_MANAGE_LINK_NEW, |
+ user_name, |
+ base::ASCIIToUTF16(chrome::kSyncChromeDashboardURL)); |
+ } |
return l10n_util::GetStringFUTF16( |
IDS_SYNC_ACCOUNT_SYNCING_TO_USER_WITH_MANAGE_LINK, |
user_name, |