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

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

Issue 2388163002: [Sync] Move //components/sync to the syncer namespace, take 2. (Closed)
Patch Set: Rebase. Created 4 years, 2 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 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 } 457 }
458 return os.str(); 458 return os.str();
459 } 459 }
460 460
461 bool ProfileSyncServiceHarness::IsTypePreferred(syncer::ModelType type) { 461 bool ProfileSyncServiceHarness::IsTypePreferred(syncer::ModelType type) {
462 return service()->GetPreferredDataTypes().Has(type); 462 return service()->GetPreferredDataTypes().Has(type);
463 } 463 }
464 464
465 std::string ProfileSyncServiceHarness::GetServiceStatus() { 465 std::string ProfileSyncServiceHarness::GetServiceStatus() {
466 std::unique_ptr<base::DictionaryValue> value( 466 std::unique_ptr<base::DictionaryValue> value(
467 sync_driver::sync_ui_util::ConstructAboutInformation( 467 syncer::sync_ui_util::ConstructAboutInformation(
468 service(), service()->signin(), chrome::GetChannel())); 468 service(), service()->signin(), chrome::GetChannel()));
469 std::string service_status; 469 std::string service_status;
470 base::JSONWriter::WriteWithOptions( 470 base::JSONWriter::WriteWithOptions(
471 *value, base::JSONWriter::OPTIONS_PRETTY_PRINT, &service_status); 471 *value, base::JSONWriter::OPTIONS_PRETTY_PRINT, &service_status);
472 return service_status; 472 return service_status;
473 } 473 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698