
And added runloop.h alongside message_loop.h in allowed //base dependencies in Blink platform code as RunLoop is effectively an extension of MessageLoop and I don't see a reason not to allow it. TBR: danakj@chromium.org (for the scripted change) TBR: kinuko@chromium.org (for third_party\Webkit\Source\platform\DEPS tweak) Bug: 748715 Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Change-Id: I36c934a0f22e3ee7ff44d3efb80c6a1fe710b7b5 Reviewed-on: https://chromium-review.googlesource.com/585732 Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Gabriel Charette <gab@chromium.org> Cr-Commit-Position: refs/heads/master@{#489617}
39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#include "components/browser_sync/test_profile_sync_service.h"
|
|
|
|
#include <utility>
|
|
|
|
#include "base/run_loop.h"
|
|
|
|
namespace browser_sync {
|
|
|
|
syncer::TestIdFactory* TestProfileSyncService::id_factory() {
|
|
return &id_factory_;
|
|
}
|
|
|
|
syncer::WeakHandle<syncer::JsEventHandler>
|
|
TestProfileSyncService::GetJsEventHandler() {
|
|
return syncer::WeakHandle<syncer::JsEventHandler>();
|
|
}
|
|
|
|
TestProfileSyncService::TestProfileSyncService(
|
|
ProfileSyncService::InitParams init_params)
|
|
: ProfileSyncService(std::move(init_params)) {}
|
|
|
|
TestProfileSyncService::~TestProfileSyncService() {}
|
|
|
|
void TestProfileSyncService::OnConfigureDone(
|
|
const syncer::DataTypeManager::ConfigureResult& result) {
|
|
ProfileSyncService::OnConfigureDone(result);
|
|
base::RunLoop::QuitCurrentWhenIdleDeprecated();
|
|
}
|
|
|
|
syncer::UserShare* TestProfileSyncService::GetUserShare() const {
|
|
return engine_->GetUserShare();
|
|
}
|
|
|
|
} // namespace browser_sync
|