OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "chromeos/network/network_profile.h" | 5 #include "chromeos/network/network_profile.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
9 | 9 |
10 namespace chromeos { | 10 namespace chromeos { |
11 | 11 |
12 std::string NetworkProfile::ToDebugString() const { | 12 std::string NetworkProfile::ToDebugString() const { |
13 std::string result; | 13 std::string result; |
14 if (type() == NetworkProfile::TYPE_SHARED) { | 14 if (type() == NetworkProfile::TYPE_SHARED) { |
15 return base::StringPrintf("NetworkProfile(SHARED, %s)", | 15 return base::StringPrintf("NetworkProfile(SHARED, %s)", |
16 path.c_str()); | 16 path.c_str()); |
17 } else if (type() == NetworkProfile::TYPE_USER) { | 17 } else if (type() == NetworkProfile::TYPE_USER) { |
18 return base::StringPrintf("NetworkProfile(USER, %s, %s)", | 18 return base::StringPrintf("NetworkProfile(USER, %s, %s)", |
19 path.c_str(), | 19 path.c_str(), |
20 userhash.c_str()); | 20 userhash.c_str()); |
21 } | 21 } |
22 NOTREACHED(); | 22 NOTREACHED(); |
23 return std::string(); | 23 return std::string(); |
24 } | 24 } |
25 | 25 |
26 } // namespace chromeos | 26 } // namespace chromeos |
OLD | NEW |