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

Side by Side Diff: mojo/shell/identity.cc

Issue 1706063002: Eliminate ShellClientFactoryConnection & just have the ApplicationManager do it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@factory
Patch Set: . Created 4 years, 10 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
« no previous file with comments | « mojo/shell/identity.h ('k') | mojo/shell/package_test_package.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/identity.h" 5 #include "mojo/shell/identity.h"
6 6
7 namespace mojo { 7 namespace mojo {
8 namespace shell { 8 namespace shell {
9 namespace { 9 namespace {
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 bool Identity::operator<(const Identity& other) const { 47 bool Identity::operator<(const Identity& other) const {
48 // We specifically don't include filter in the equivalence check because we 48 // We specifically don't include filter in the equivalence check because we
49 // don't quite know how this should work yet. 49 // don't quite know how this should work yet.
50 // TODO(beng): figure out how it should work. 50 // TODO(beng): figure out how it should work.
51 if (url_ != other.url_) 51 if (url_ != other.url_)
52 return url_ < other.url_; 52 return url_ < other.url_;
53 return qualifier_ < other.qualifier_; 53 return qualifier_ < other.qualifier_;
54 } 54 }
55 55
56 Identity CreateShellIdentity() {
57 return Identity(GURL("mojo://shell/"), std::string(),
58 GetPermissiveCapabilityFilter());
59 }
60
56 } // namespace shell 61 } // namespace shell
57 } // namespace mojo 62 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/shell/identity.h ('k') | mojo/shell/package_test_package.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698