Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(829)

Side by Side Diff: chrome/browser/chrome_to_mobile_service_factory.cc

Issue 9443007: Add Chrome To Mobile Service and Views Page Action. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Bail on empty GetOAuth2LoginRefreshToken(). Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chrome_to_mobile_service_factory.h ('k') | chrome/browser/ui/browser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/chrome_to_mobile_service_factory.h"
6
7 #include "chrome/browser/chrome_to_mobile_service.h"
8 #include "chrome/browser/profiles/profile_dependency_manager.h"
9
10 // static
11 ChromeToMobileServiceFactory* ChromeToMobileServiceFactory::GetInstance() {
12 return Singleton<ChromeToMobileServiceFactory>::get();
13 }
14
15 // static
16 ChromeToMobileService* ChromeToMobileServiceFactory::GetForProfile(
17 Profile* profile) {
18 return static_cast<ChromeToMobileService*>(
19 GetInstance()->GetServiceForProfile(profile, true));
20 }
21
22 ProfileKeyedService* ChromeToMobileServiceFactory::BuildServiceInstanceFor(
23 Profile* profile) const {
24 return new ChromeToMobileService(profile);
25 }
26
27 ChromeToMobileServiceFactory::ChromeToMobileServiceFactory()
28 : ProfileKeyedServiceFactory("ChromeToMobileService",
29 ProfileDependencyManager::GetInstance()) {
30 }
31
32 ChromeToMobileServiceFactory::~ChromeToMobileServiceFactory() {}
OLDNEW
« no previous file with comments | « chrome/browser/chrome_to_mobile_service_factory.h ('k') | chrome/browser/ui/browser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698