| Index: chromeos/network/network_profile.cc
|
| diff --git a/chromeos/network/network_profile.cc b/chromeos/network/network_profile.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..97b7ce520a4674b87aa6851c0e618e8f95bd20a9
|
| --- /dev/null
|
| +++ b/chromeos/network/network_profile.cc
|
| @@ -0,0 +1,26 @@
|
| +// Copyright (c) 2013 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 "chromeos/network/network_profile.h"
|
| +
|
| +#include "base/logging.h"
|
| +#include "base/stringprintf.h"
|
| +
|
| +namespace chromeos {
|
| +
|
| +std::string NetworkProfile::ToDebugString() const {
|
| + std::string result;
|
| + if (type() == NetworkProfile::TYPE_SHARED) {
|
| + return base::StringPrintf("NetworkProfile(SHARED, %s)",
|
| + path.c_str());
|
| + } else if (type() == NetworkProfile::TYPE_USER) {
|
| + return base::StringPrintf("NetworkProfile(USER, %s, %s)",
|
| + path.c_str(),
|
| + userhash.c_str());
|
| + }
|
| + NOTREACHED();
|
| + return std::string();
|
| +}
|
| +
|
| +} // namespace chromeos
|
|
|