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

Unified Diff: chrome/browser/android/blimp/blimp_client_context_factory.cc

Issue 2297933002: blimp: Set up the CompositorDependencies for blimp in Chrome. (Closed)
Patch Set: retry gpu process failures after crbug.com/643282 Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/android/DEPS ('k') | chrome/browser/android/blimp/chrome_compositor_dependencies.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/blimp/blimp_client_context_factory.cc
diff --git a/chrome/browser/android/blimp/blimp_client_context_factory.cc b/chrome/browser/android/blimp/blimp_client_context_factory.cc
index 835fbed18310dc43374c6282ada0f0c0babb263e..c40c35f644a473f652f1ead19845703d0dc4c53c 100644
--- a/chrome/browser/android/blimp/blimp_client_context_factory.cc
+++ b/chrome/browser/android/blimp/blimp_client_context_factory.cc
@@ -8,9 +8,11 @@
#include "base/supports_user_data.h"
#include "blimp/client/public/blimp_client_context.h"
#include "blimp/client/public/compositor/compositor_dependencies.h"
+#include "chrome/browser/android/blimp/chrome_compositor_dependencies.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
+#include "ui/android/context_provider_factory.h"
// static
BlimpClientContextFactory* BlimpClientContextFactory::GetInstance() {
@@ -40,7 +42,8 @@ KeyedService* BlimpClientContextFactory::BuildServiceInstanceFor(
content::BrowserThread::IO),
content::BrowserThread::GetTaskRunnerForThread(
content::BrowserThread::FILE),
- nullptr);
+ base::MakeUnique<ChromeCompositorDependencies>(
+ ui::ContextProviderFactory::GetInstance()));
}
content::BrowserContext* BlimpClientContextFactory::GetBrowserContextToUse(
« no previous file with comments | « chrome/browser/android/DEPS ('k') | chrome/browser/android/blimp/chrome_compositor_dependencies.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698