// Copyright 2014 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 "chrome/browser/signin/fake_profile_oauth2_token_service_builder.h" #include "components/signin/core/browser/fake_profile_oauth2_token_service.h" // TODO(blundell): Should these be namespaced? scoped_ptr BuildFakeProfileOAuth2TokenService( content::BrowserContext* context) { scoped_ptr service( new FakeProfileOAuth2TokenService()); return service.Pass(); } scoped_ptr BuildAutoIssuingFakeProfileOAuth2TokenService( content::BrowserContext* context) { scoped_ptr service( new FakeProfileOAuth2TokenService()); service->set_auto_post_fetch_response_on_message_loop(true); return service.Pass(); }