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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/network/network_profile.h ('k') | chromeos/network/network_profile_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« 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