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

Side by Side Diff: chromeos/network/network_profile.cc

Issue 13957012: Adding a NetworkProfileHandler used by ManagedNetworkConfigurationHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « chromeos/network/network_profile.h ('k') | chromeos/network/network_profile_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chromeos/network/network_profile.h"
6
7 #include "base/logging.h"
8 #include "base/stringprintf.h"
9
10 namespace chromeos {
11
12 std::string NetworkProfile::ToDebugString() const {
13 std::string result;
14 if (type() == NetworkProfile::TYPE_SHARED) {
15 return base::StringPrintf("NetworkProfile(SHARED, %s)",
16 path.c_str());
17 } else if (type() == NetworkProfile::TYPE_USER) {
18 return base::StringPrintf("NetworkProfile(USER, %s, %s)",
19 path.c_str(),
20 userhash.c_str());
21 }
22 NOTREACHED();
23 return std::string();
24 }
25
26 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/network/network_profile.h ('k') | chromeos/network/network_profile_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698