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

Unified Diff: chrome/test/base/view_event_test_platform_part_chromeos.cc

Issue 2563783002: ui + mus: Split ContextFactory into ContextFactory(Client) and ContextFactoryPrivate (Closed)
Patch Set: Restore mash Created 4 years 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
Index: chrome/test/base/view_event_test_platform_part_chromeos.cc
diff --git a/chrome/test/base/view_event_test_platform_part_chromeos.cc b/chrome/test/base/view_event_test_platform_part_chromeos.cc
index a18104b6c7ed8f5da2fc066bfdc69d26af82ea93..8e9865e7f00e50d353f3652a473ea55267101375 100644
--- a/chrome/test/base/view_event_test_platform_part_chromeos.cc
+++ b/chrome/test/base/view_event_test_platform_part_chromeos.cc
@@ -30,8 +30,9 @@ namespace {
// ViewEventTestPlatformPart implementation for ChromeOS (chromeos=1).
class ViewEventTestPlatformPartChromeOS : public ViewEventTestPlatformPart {
public:
- explicit ViewEventTestPlatformPartChromeOS(
- ui::ContextFactory* context_factory);
+ ViewEventTestPlatformPartChromeOS(
+ ui::ContextFactory* context_factory,
+ ui::ContextFactoryPrivate* context_factory_private);
~ViewEventTestPlatformPartChromeOS() override;
// Overridden from ViewEventTestPlatformPart:
@@ -47,7 +48,8 @@ class ViewEventTestPlatformPartChromeOS : public ViewEventTestPlatformPart {
};
ViewEventTestPlatformPartChromeOS::ViewEventTestPlatformPartChromeOS(
- ui::ContextFactory* context_factory) {
+ ui::ContextFactory* context_factory,
+ ui::ContextFactoryPrivate* context_factory_private) {
// Ash Shell can't just live on its own without a browser process, we need to
// also create the message center.
message_center::MessageCenter::Initialize();
@@ -65,6 +67,7 @@ ViewEventTestPlatformPartChromeOS::ViewEventTestPlatformPartChromeOS(
ash::ShellInitParams init_params;
init_params.delegate = shell_delegate;
init_params.context_factory = context_factory;
+ init_params.context_factory_private = context_factory_private;
init_params.blocking_pool = content::BrowserThread::GetBlockingPool();
base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
switches::kHostWindowBounds, "0+0-1280x800");
@@ -91,6 +94,8 @@ ViewEventTestPlatformPartChromeOS::~ViewEventTestPlatformPartChromeOS() {
// static
ViewEventTestPlatformPart* ViewEventTestPlatformPart::Create(
- ui::ContextFactory* context_factory) {
- return new ViewEventTestPlatformPartChromeOS(context_factory);
+ ui::ContextFactory* context_factory,
+ ui::ContextFactoryPrivate* context_factory_private) {
+ return new ViewEventTestPlatformPartChromeOS(context_factory,
+ context_factory_private);
}
« no previous file with comments | « chrome/test/base/view_event_test_platform_part.h ('k') | chrome/test/base/view_event_test_platform_part_default.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698