OLD | NEW |
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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 } | 463 } |
464 return os.str(); | 464 return os.str(); |
465 } | 465 } |
466 | 466 |
467 bool ProfileSyncServiceHarness::IsTypePreferred(syncer::ModelType type) { | 467 bool ProfileSyncServiceHarness::IsTypePreferred(syncer::ModelType type) { |
468 return service()->GetPreferredDataTypes().Has(type); | 468 return service()->GetPreferredDataTypes().Has(type); |
469 } | 469 } |
470 | 470 |
471 std::string ProfileSyncServiceHarness::GetServiceStatus() { | 471 std::string ProfileSyncServiceHarness::GetServiceStatus() { |
472 scoped_ptr<base::DictionaryValue> value( | 472 scoped_ptr<base::DictionaryValue> value( |
473 sync_ui_util::ConstructAboutInformation( | 473 sync_driver::ConstructAboutInformation(service(), service()->signin(), |
474 service(), service()->signin(), chrome::GetChannel())); | 474 chrome::GetChannel())); |
475 std::string service_status; | 475 std::string service_status; |
476 base::JSONWriter::WriteWithOptions( | 476 base::JSONWriter::WriteWithOptions( |
477 *value, base::JSONWriter::OPTIONS_PRETTY_PRINT, &service_status); | 477 *value, base::JSONWriter::OPTIONS_PRETTY_PRINT, &service_status); |
478 return service_status; | 478 return service_status; |
479 } | 479 } |
OLD | NEW |