| OLD | NEW |
| 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 #include "mojo/shell/public/cpp/names.h" | 7 #include "mojo/shell/public/cpp/names.h" |
| 8 #include "mojo/shell/public/interfaces/shell.mojom.h" | 8 #include "mojo/shell/public/interfaces/connector.mojom.h" |
| 9 | 9 |
| 10 namespace mojo { | 10 namespace mojo { |
| 11 namespace shell { | 11 namespace shell { |
| 12 | 12 |
| 13 Identity::Identity() {} | 13 Identity::Identity() {} |
| 14 | 14 |
| 15 Identity::Identity(const std::string& name) | 15 Identity::Identity(const std::string& name) |
| 16 : Identity(name, GetNamePath(name), mojom::Connector::kUserRoot) {} | 16 : Identity(name, GetNamePath(name), mojom::Connector::kUserRoot) {} |
| 17 | 17 |
| 18 Identity::Identity(const std::string& name, const std::string& qualifier, | 18 Identity::Identity(const std::string& name, const std::string& qualifier, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 it = filter.find("*"); | 69 it = filter.find("*"); |
| 70 if (filter.size() == 1 && it != filter.end()) | 70 if (filter.size() == 1 && it != filter.end()) |
| 71 return it->second; | 71 return it->second; |
| 72 | 72 |
| 73 // Finally, nothing is allowed. | 73 // Finally, nothing is allowed. |
| 74 return AllowedInterfaces(); | 74 return AllowedInterfaces(); |
| 75 } | 75 } |
| 76 | 76 |
| 77 } // namespace shell | 77 } // namespace shell |
| 78 } // namespace mojo | 78 } // namespace mojo |
| OLD | NEW |