| 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> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/json/json_writer.h" | 14 #include "base/json/json_writer.h" |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
| 17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
| 18 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 18 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
| 19 #include "chrome/browser/sync/profile_sync_service_factory.h" | 19 #include "chrome/browser/sync/profile_sync_service_factory.h" |
| 20 #include "chrome/browser/sync/test/integration/quiesce_status_change_checker.h" | 20 #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" | 21 #include "chrome/browser/sync/test/integration/single_client_status_change_check
er.h" |
| 22 #include "chrome/browser/ui/browser.h" | 22 #include "chrome/browser/ui/browser.h" |
| 23 #include "chrome/browser/ui/browser_finder.h" | 23 #include "chrome/browser/ui/browser_finder.h" |
| 24 #include "chrome/browser/ui/webui/signin/login_ui_test_utils.h" | 24 #include "chrome/browser/ui/webui/signin/login_ui_test_utils.h" |
| 25 #include "chrome/common/channel_info.h" | 25 #include "chrome/common/channel_info.h" |
| 26 #include "chrome/common/chrome_switches.h" | 26 #include "chrome/common/chrome_switches.h" |
| 27 #include "components/browser_sync/browser/profile_sync_service.h" | 27 #include "components/browser_sync/profile_sync_service.h" |
| 28 #include "components/invalidation/impl/p2p_invalidation_service.h" | 28 #include "components/invalidation/impl/p2p_invalidation_service.h" |
| 29 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 29 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
| 30 #include "components/signin/core/browser/signin_manager_base.h" | 30 #include "components/signin/core/browser/signin_manager_base.h" |
| 31 #include "components/sync/base/progress_marker_map.h" | 31 #include "components/sync/base/progress_marker_map.h" |
| 32 #include "components/sync/driver/about_sync_util.h" | 32 #include "components/sync/driver/about_sync_util.h" |
| 33 #include "components/sync/engine/sync_string_conversions.h" | 33 #include "components/sync/engine/sync_string_conversions.h" |
| 34 #include "google_apis/gaia/gaia_constants.h" | 34 #include "google_apis/gaia/gaia_constants.h" |
| 35 | 35 |
| 36 using syncer::SyncCycleSnapshot; | 36 using syncer::SyncCycleSnapshot; |
| 37 | 37 |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 | 474 |
| 475 std::string ProfileSyncServiceHarness::GetServiceStatus() { | 475 std::string ProfileSyncServiceHarness::GetServiceStatus() { |
| 476 std::unique_ptr<base::DictionaryValue> value( | 476 std::unique_ptr<base::DictionaryValue> value( |
| 477 sync_driver::sync_ui_util::ConstructAboutInformation( | 477 sync_driver::sync_ui_util::ConstructAboutInformation( |
| 478 service(), service()->signin(), chrome::GetChannel())); | 478 service(), service()->signin(), chrome::GetChannel())); |
| 479 std::string service_status; | 479 std::string service_status; |
| 480 base::JSONWriter::WriteWithOptions( | 480 base::JSONWriter::WriteWithOptions( |
| 481 *value, base::JSONWriter::OPTIONS_PRETTY_PRINT, &service_status); | 481 *value, base::JSONWriter::OPTIONS_PRETTY_PRINT, &service_status); |
| 482 return service_status; | 482 return service_status; |
| 483 } | 483 } |
| OLD | NEW |