| 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> |
| 11 #include <vector> | |
| 12 | 11 |
| 13 #include "base/compiler_specific.h" | |
| 14 #include "base/json/json_writer.h" | 12 #include "base/json/json_writer.h" |
| 15 #include "base/logging.h" | 13 #include "base/logging.h" |
| 16 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
| 17 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
| 18 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 16 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
| 19 #include "chrome/browser/sync/profile_sync_service_factory.h" | 17 #include "chrome/browser/sync/profile_sync_service_factory.h" |
| 20 #include "chrome/browser/sync/test/integration/quiesce_status_change_checker.h" | 18 #include "chrome/browser/sync/test/integration/quiesce_status_change_checker.h" |
| 21 #include "chrome/browser/sync/test/integration/single_client_status_change_check
er.h" | 19 #include "chrome/browser/sync/test/integration/single_client_status_change_check
er.h" |
| 22 #include "chrome/browser/ui/browser.h" | 20 #include "chrome/browser/ui/browser.h" |
| 23 #include "chrome/browser/ui/browser_finder.h" | 21 #include "chrome/browser/ui/browser_finder.h" |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 | 473 |
| 476 std::string ProfileSyncServiceHarness::GetServiceStatus() { | 474 std::string ProfileSyncServiceHarness::GetServiceStatus() { |
| 477 std::unique_ptr<base::DictionaryValue> value( | 475 std::unique_ptr<base::DictionaryValue> value( |
| 478 sync_driver::sync_ui_util::ConstructAboutInformation( | 476 sync_driver::sync_ui_util::ConstructAboutInformation( |
| 479 service(), service()->signin(), chrome::GetChannel())); | 477 service(), service()->signin(), chrome::GetChannel())); |
| 480 std::string service_status; | 478 std::string service_status; |
| 481 base::JSONWriter::WriteWithOptions( | 479 base::JSONWriter::WriteWithOptions( |
| 482 *value, base::JSONWriter::OPTIONS_PRETTY_PRINT, &service_status); | 480 *value, base::JSONWriter::OPTIONS_PRETTY_PRINT, &service_status); |
| 483 return service_status; | 481 return service_status; |
| 484 } | 482 } |
| OLD | NEW |