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

Side by Side Diff: chrome/browser/sync/test/integration/profile_sync_service_harness.cc

Issue 2898723003: [Sync] Migrate SyncInternalsMessageHandler off CallJavascriptFunctionUnsafe. (Closed)
Patch Set: More updates for dbeam. Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" 5 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 #include <iterator> 8 #include <iterator>
9 #include <ostream> 9 #include <ostream>
10 #include <sstream> 10 #include <sstream>
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 } 536 }
537 return os.str(); 537 return os.str();
538 } 538 }
539 539
540 bool ProfileSyncServiceHarness::IsTypePreferred(syncer::ModelType type) { 540 bool ProfileSyncServiceHarness::IsTypePreferred(syncer::ModelType type) {
541 return service()->GetPreferredDataTypes().Has(type); 541 return service()->GetPreferredDataTypes().Has(type);
542 } 542 }
543 543
544 std::string ProfileSyncServiceHarness::GetServiceStatus() { 544 std::string ProfileSyncServiceHarness::GetServiceStatus() {
545 std::unique_ptr<base::DictionaryValue> value( 545 std::unique_ptr<base::DictionaryValue> value(
546 syncer::sync_ui_util::ConstructAboutInformation( 546 syncer::sync_ui_util::ConstructAboutInformation(service(),
547 service(), service()->signin(), chrome::GetChannel())); 547 chrome::GetChannel()));
548 std::string service_status; 548 std::string service_status;
549 base::JSONWriter::WriteWithOptions( 549 base::JSONWriter::WriteWithOptions(
550 *value, base::JSONWriter::OPTIONS_PRETTY_PRINT, &service_status); 550 *value, base::JSONWriter::OPTIONS_PRETTY_PRINT, &service_status);
551 return service_status; 551 return service_status;
552 } 552 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service_android.cc ('k') | chrome/browser/ui/webui/sync_internals_message_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698