| Index: mojo/service_manager/service_manager.cc
|
| diff --git a/mojo/service_manager/service_manager.cc b/mojo/service_manager/service_manager.cc
|
| index 7aa38441fde3977c0396e8b4df22df3c37a3c59f..34a2f45939ce41e82d2e736c69ab5f146b391a56 100644
|
| --- a/mojo/service_manager/service_manager.cc
|
| +++ b/mojo/service_manager/service_manager.cc
|
| @@ -10,7 +10,6 @@
|
| #include "base/logging.h"
|
| #include "base/macros.h"
|
| #include "base/stl_util.h"
|
| -#include "mojo/public/cpp/bindings/allocation_scope.h"
|
| #include "mojo/service_manager/service_loader.h"
|
|
|
| namespace mojo {
|
| @@ -31,16 +30,14 @@ class ServiceManager::ServiceFactory : public InterfaceImpl<Shell> {
|
| }
|
|
|
| void ConnectToClient(ScopedMessagePipeHandle handle) {
|
| - if (handle.is_valid()) {
|
| - AllocationScope scope;
|
| + if (handle.is_valid())
|
| client()->AcceptConnection(url_.spec(), handle.Pass());
|
| - }
|
| }
|
|
|
| // Shell implementation:
|
| virtual void Connect(const String& url,
|
| ScopedMessagePipeHandle client_pipe) OVERRIDE {
|
| - manager_->Connect(GURL(url.To<std::string>()), client_pipe.Pass());
|
| + manager_->Connect(GURL(url), client_pipe.Pass());
|
| }
|
|
|
| const GURL& url() const { return url_; }
|
| @@ -69,7 +66,7 @@ class ServiceManager::TestAPI::TestShellConnection
|
| // Shell:
|
| virtual void Connect(const String& url,
|
| ScopedMessagePipeHandle client_pipe) OVERRIDE {
|
| - manager_->Connect(GURL(url.To<std::string>()), client_pipe.Pass());
|
| + manager_->Connect(GURL(url), client_pipe.Pass());
|
| }
|
|
|
| private:
|
|
|