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

Unified Diff: mojo/examples/launcher/launcher.cc

Issue 280003003: Add SetClient method implementation to InterfaceImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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 | « content/browser/mojo/mojo_application_host.cc ('k') | mojo/public/cpp/bindings/interface_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/launcher/launcher.cc
diff --git a/mojo/examples/launcher/launcher.cc b/mojo/examples/launcher/launcher.cc
index cbee9d712cfaf1fb4bf9c3997221aaf745b3b074..695269936d9868611d7f356d8d6f03f4e2b3e899 100644
--- a/mojo/examples/launcher/launcher.cc
+++ b/mojo/examples/launcher/launcher.cc
@@ -193,7 +193,6 @@ class LauncherImpl : public ServiceConnection<Launcher, LauncherImpl>,
public:
LauncherImpl()
: launcher_controller_(this),
- launcher_client_(NULL),
pending_show_(false) {
}
@@ -211,9 +210,6 @@ class LauncherImpl : public ServiceConnection<Launcher, LauncherImpl>,
private:
// Overridden from Launcher:
- virtual void SetClient(LauncherClient* client) OVERRIDE {
- launcher_client_ = client;
- }
virtual void Show() OVERRIDE {
if (!window_tree_host_.get()) {
pending_show_ = true;
@@ -228,7 +224,7 @@ class LauncherImpl : public ServiceConnection<Launcher, LauncherImpl>,
// Overridden from URLReceiver:
virtual void OnURLEntered(const std::string& url_text) OVERRIDE {
AllocationScope scope;
- launcher_client_->OnURLEntered(url_text);
+ client()->OnURLEntered(url_text);
}
void HostContextCreated() {
@@ -262,7 +258,6 @@ class LauncherImpl : public ServiceConnection<Launcher, LauncherImpl>,
LauncherController launcher_controller_;
- LauncherClient* launcher_client_;
scoped_ptr<aura::WindowTreeHost> window_tree_host_;
bool pending_show_;
« no previous file with comments | « content/browser/mojo/mojo_application_host.cc ('k') | mojo/public/cpp/bindings/interface_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698