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

Unified Diff: components/sync/driver/about_sync_util.cc

Issue 2898723003: [Sync] Migrate SyncInternalsMessageHandler off CallJavascriptFunctionUnsafe. (Closed)
Patch Set: More updates for dbeam. 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 | « components/sync/driver/about_sync_util.h ('k') | components/sync/driver/about_sync_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/driver/about_sync_util.cc
diff --git a/components/sync/driver/about_sync_util.cc b/components/sync/driver/about_sync_util.cc
index b1863dcb08a7e56ad182d259cf16a1a688ba573b..ad7ce999e70a0c06d1ca60b83d86fae7e946ff64 100644
--- a/components/sync/driver/about_sync_util.cc
+++ b/components/sync/driver/about_sync_util.cc
@@ -278,7 +278,6 @@ std::string GetConnectionStatus(const SyncService::SyncTokenStatus& status) {
// classes defined above.
std::unique_ptr<base::DictionaryValue> ConstructAboutInformation(
SyncService* service,
- SigninManagerBase* signin,
version_info::Channel channel) {
std::unique_ptr<base::DictionaryValue> about_info(
new base::DictionaryValue());
@@ -434,8 +433,8 @@ std::unique_ptr<base::DictionaryValue> ConstructAboutInformation(
sync_id.SetValue(full_status.sync_id);
if (is_status_valid && !full_status.invalidator_client_id.empty())
invalidator_id.SetValue(full_status.invalidator_client_id);
- if (signin)
- username.SetValue(signin->GetAuthenticatedAccountInfo().email);
+ if (service->signin())
+ username.SetValue(service->signin()->GetAuthenticatedAccountInfo().email);
const SyncService::SyncTokenStatus& token_status =
service->GetSyncTokenStatus();
« no previous file with comments | « components/sync/driver/about_sync_util.h ('k') | components/sync/driver/about_sync_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698