| Index: services/shell/public/cpp/lib/identity.cc
|
| diff --git a/services/shell/public/cpp/lib/identity.cc b/services/shell/public/cpp/lib/identity.cc
|
| deleted file mode 100644
|
| index 5193207f7dcdcc29facd2c58ed4a6e80d657ca04..0000000000000000000000000000000000000000
|
| --- a/services/shell/public/cpp/lib/identity.cc
|
| +++ /dev/null
|
| @@ -1,43 +0,0 @@
|
| -// Copyright 2016 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -#include "services/shell/public/cpp/identity.h"
|
| -
|
| -#include "base/guid.h"
|
| -#include "services/shell/public/cpp/names.h"
|
| -
|
| -namespace shell {
|
| -
|
| -Identity::Identity() {}
|
| -
|
| -Identity::Identity(const std::string& name, const std::string& user_id)
|
| - : Identity(name, user_id, "") {}
|
| -
|
| -Identity::Identity(const std::string& name, const std::string& user_id,
|
| - const std::string& instance)
|
| - : name_(name),
|
| - user_id_(user_id),
|
| - instance_(instance.empty() ? GetNamePath(name_) : instance) {
|
| - CHECK(!user_id.empty());
|
| - CHECK(base::IsValidGUID(user_id));
|
| -}
|
| -
|
| -Identity::Identity(const Identity& other) = default;
|
| -
|
| -Identity::~Identity() {}
|
| -
|
| -bool Identity::operator<(const Identity& other) const {
|
| - if (name_ != other.name_)
|
| - return name_ < other.name_;
|
| - if (instance_ != other.instance_)
|
| - return instance_ < other.instance_;
|
| - return user_id_ < other.user_id_;
|
| -}
|
| -
|
| -bool Identity::operator==(const Identity& other) const {
|
| - return other.name_ == name_ && other.instance_ == instance_ &&
|
| - other.user_id_ == user_id_;
|
| -}
|
| -
|
| -} // namespace shell
|
|
|