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

Unified Diff: components/browsing_data/core/browsing_data_utils.cc

Issue 2855623005: Move browsing_data counter sync tests to separate file (Closed)
Patch Set: fixes Created 3 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
« no previous file with comments | « chrome/test/BUILD.gn ('k') | components/browsing_data/core/browsing_data_utils_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/browsing_data/core/browsing_data_utils.cc
diff --git a/components/browsing_data/core/browsing_data_utils.cc b/components/browsing_data/core/browsing_data_utils.cc
index 12fd8ae2a0b7255cc1d6b1bdc76562758a260cb2..ea7e7bb5cb44e14565e3103483a3ddd6399269d5 100644
--- a/components/browsing_data/core/browsing_data_utils.cc
+++ b/components/browsing_data/core/browsing_data_utils.cc
@@ -75,15 +75,14 @@ base::string16 GetCounterTextFromResult(
text = l10n_util::GetStringUTF16(IDS_CLEAR_BROWSING_DATA_CALCULATING);
} else if (pref_name == prefs::kDeletePasswords) {
- const PasswordsCounter::PasswordResult* password_result =
- static_cast<const PasswordsCounter::PasswordResult*>(result);
+ const BrowsingDataCounter::SyncResult* password_result =
+ static_cast<const BrowsingDataCounter::SyncResult*>(result);
BrowsingDataCounter::ResultInt count = password_result->Value();
text = l10n_util::GetPluralStringFUTF16(
- password_result->password_sync_enabled()
- ? IDS_DEL_PASSWORDS_COUNTER_SYNCED
- : IDS_DEL_PASSWORDS_COUNTER,
+ password_result->is_sync_enabled() ? IDS_DEL_PASSWORDS_COUNTER_SYNCED
+ : IDS_DEL_PASSWORDS_COUNTER,
count);
} else if (pref_name == prefs::kDeleteDownloadHistory) {
BrowsingDataCounter::ResultInt count =
@@ -151,7 +150,7 @@ base::string16 GetCounterTextFromResult(
}
}
- bool synced = autofill_result->autofill_sync_enabled();
+ bool synced = autofill_result->is_sync_enabled();
// Construct the resulting string from the sections in |displayed_strings|.
switch (displayed_strings.size()) {
« no previous file with comments | « chrome/test/BUILD.gn ('k') | components/browsing_data/core/browsing_data_utils_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698