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

Unified Diff: mojo/shell/context.cc

Issue 404913002: Break dependency of native_viewport_service on mojo::shell::Context (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 6 years, 5 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
« mojo/shell/context.h ('K') | « mojo/shell/context.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/context.cc
diff --git a/mojo/shell/context.cc b/mojo/shell/context.cc
index 0eba764383ac43cd1403220fb563d7513fe5ebab..1beaaa3b655024b2049ea7d57aaf9d8fb72a14c9 100644
--- a/mojo/shell/context.cc
+++ b/mojo/shell/context.cc
@@ -72,7 +72,8 @@ class Context::NativeViewportServiceLoader : public ServiceLoader {
virtual void LoadService(ServiceManager* manager,
const GURL& url,
ScopedMessagePipeHandle shell_handle) OVERRIDE {
- app_.reset(::CreateNativeViewportService(context_, shell_handle.Pass()));
+ app_.reset(services::CreateNativeViewportService(
+ context_, shell_handle.Pass()));
}
virtual void OnServiceError(ServiceManager* manager,
@@ -163,5 +164,9 @@ Context::~Context() {
service_manager_.set_default_loader(scoped_ptr<ServiceLoader>());
}
+#if defined(OS_ANDROID)
+jobject Context::GetActivity() { return activity_.obj(); }
+#endif // defined(OS_ANDROID)
+
} // namespace shell
} // namespace mojo
« mojo/shell/context.h ('K') | « mojo/shell/context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698