| OLD | NEW |
| 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 20 matching lines...) Expand all Loading... |
| 31 BrowserContextDependencyManager::GetInstance()) {} | 31 BrowserContextDependencyManager::GetInstance()) {} |
| 32 | 32 |
| 33 BlimpClientContextFactory::~BlimpClientContextFactory() {} | 33 BlimpClientContextFactory::~BlimpClientContextFactory() {} |
| 34 | 34 |
| 35 KeyedService* BlimpClientContextFactory::BuildServiceInstanceFor( | 35 KeyedService* BlimpClientContextFactory::BuildServiceInstanceFor( |
| 36 content::BrowserContext* context) const { | 36 content::BrowserContext* context) const { |
| 37 return blimp::client::BlimpClientContext::Create( | 37 return blimp::client::BlimpClientContext::Create( |
| 38 content::BrowserThread::GetTaskRunnerForThread( | 38 content::BrowserThread::GetTaskRunnerForThread( |
| 39 content::BrowserThread::IO), | 39 content::BrowserThread::IO), |
| 40 content::BrowserThread::GetTaskRunnerForThread( | 40 content::BrowserThread::GetTaskRunnerForThread( |
| 41 content::BrowserThread::FILE)); | 41 content::BrowserThread::FILE), |
| 42 nullptr); |
| 42 } | 43 } |
| 43 | 44 |
| 44 content::BrowserContext* BlimpClientContextFactory::GetBrowserContextToUse( | 45 content::BrowserContext* BlimpClientContextFactory::GetBrowserContextToUse( |
| 45 content::BrowserContext* context) const { | 46 content::BrowserContext* context) const { |
| 46 return context; | 47 return context; |
| 47 } | 48 } |
| OLD | NEW |