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

Side by Side Diff: chrome/browser/android/blimp/blimp_client_context_factory.cc

Issue 2211613002: Add AssignmentSource to BlimpClientContextImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge origin/master Created 4 years, 4 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/android/blimp/blimp_client_context_factory.h" 5 #include "chrome/browser/android/blimp/blimp_client_context_factory.h"
6 6
7 #include "base/memory/singleton.h" 7 #include "base/memory/singleton.h"
8 #include "base/supports_user_data.h" 8 #include "base/supports_user_data.h"
9 #include "blimp/client/public/blimp_client_context.h" 9 #include "blimp/client/public/blimp_client_context.h"
10 #include "components/keyed_service/content/browser_context_dependency_manager.h" 10 #include "components/keyed_service/content/browser_context_dependency_manager.h"
(...skipping 17 matching lines...) Expand all
28 : BrowserContextKeyedServiceFactory( 28 : BrowserContextKeyedServiceFactory(
29 "blimp::client::BlimpClientContext", 29 "blimp::client::BlimpClientContext",
30 BrowserContextDependencyManager::GetInstance()) {} 30 BrowserContextDependencyManager::GetInstance()) {}
31 31
32 BlimpClientContextFactory::~BlimpClientContextFactory() {} 32 BlimpClientContextFactory::~BlimpClientContextFactory() {}
33 33
34 KeyedService* BlimpClientContextFactory::BuildServiceInstanceFor( 34 KeyedService* BlimpClientContextFactory::BuildServiceInstanceFor(
35 content::BrowserContext* context) const { 35 content::BrowserContext* context) const {
36 return blimp::client::BlimpClientContext::Create( 36 return blimp::client::BlimpClientContext::Create(
37 content::BrowserThread::GetTaskRunnerForThread( 37 content::BrowserThread::GetTaskRunnerForThread(
38 content::BrowserThread::IO)); 38 content::BrowserThread::IO),
39 content::BrowserThread::GetTaskRunnerForThread(
40 content::BrowserThread::FILE));
39 } 41 }
40 42
41 content::BrowserContext* BlimpClientContextFactory::GetBrowserContextToUse( 43 content::BrowserContext* BlimpClientContextFactory::GetBrowserContextToUse(
42 content::BrowserContext* context) const { 44 content::BrowserContext* context) const {
43 return context; 45 return context;
44 } 46 }
OLDNEW
« no previous file with comments | « blimp/engine/browser_tests/engine_browsertest.cc ('k') | chrome/browser/android/blimp/chrome_blimp_client_context_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698