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

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

Issue 294833002: Mojo: more idiomatic C++ bindings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more 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
Index: mojo/examples/launcher/launcher.cc
diff --git a/mojo/examples/launcher/launcher.cc b/mojo/examples/launcher/launcher.cc
index 302f30cf3d9277f1e0b8a74a90d34b9a4fb17c94..1b7d713db35efdc71c23dd8268b6a1f38cb66c08 100644
--- a/mojo/examples/launcher/launcher.cc
+++ b/mojo/examples/launcher/launcher.cc
@@ -15,7 +15,6 @@
#include "mojo/aura/screen_mojo.h"
#include "mojo/aura/window_tree_host_mojo.h"
#include "mojo/examples/launcher/launcher.mojom.h"
-#include "mojo/public/cpp/bindings/allocation_scope.h"
#include "mojo/public/cpp/gles2/gles2.h"
#include "mojo/public/cpp/shell/application.h"
#include "mojo/public/cpp/system/core.h"
@@ -224,8 +223,7 @@ class LauncherImpl : public InterfaceImpl<Launcher>,
// Overridden from URLReceiver:
virtual void OnURLEntered(const std::string& url_text) OVERRIDE {
- AllocationScope scope;
- client()->OnURLEntered(url_text);
+ client()->OnURLEntered(String::From(url_text));
}
void HostContextCreated() {

Powered by Google App Engine
This is Rietveld 408576698