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

Side by Side Diff: trunk/src/mojo/shell/run.cc

Issue 304593002: Revert 272983 "Change Shell / ShellClient to ServiceProvider" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « trunk/src/mojo/shell/external_service.mojom ('k') | trunk/src/mojo/shell/shell_test_helper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "mojo/shell/run.h" 5 #include "mojo/shell/run.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "mojo/service_manager/service_manager.h" 10 #include "mojo/service_manager/service_manager.h"
(...skipping 18 matching lines...) Expand all
29 } 29 }
30 30
31 for (base::CommandLine::StringVector::const_iterator it = args.begin(); 31 for (base::CommandLine::StringVector::const_iterator it = args.begin();
32 it != args.end(); ++it) { 32 it != args.end(); ++it) {
33 GURL url(*it); 33 GURL url(*it);
34 if (url.scheme() == "mojo" && !command_line.HasSwitch(switches::kOrigin)) { 34 if (url.scheme() == "mojo" && !command_line.HasSwitch(switches::kOrigin)) {
35 LOG(ERROR) << "mojo: url passed with no --origin specified."; 35 LOG(ERROR) << "mojo: url passed with no --origin specified.";
36 return; 36 return;
37 } 37 }
38 ScopedMessagePipeHandle no_handle; 38 ScopedMessagePipeHandle no_handle;
39 context->service_manager()->ConnectToService(GURL(*it), no_handle.Pass()); 39 context->service_manager()->Connect(GURL(*it), no_handle.Pass());
40 } 40 }
41 } 41 }
42 42
43 } // namespace shell 43 } // namespace shell
44 } // namespace mojo 44 } // namespace mojo
OLDNEW
« no previous file with comments | « trunk/src/mojo/shell/external_service.mojom ('k') | trunk/src/mojo/shell/shell_test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698