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

Unified Diff: chrome/browser/sync/util/path_helpers_posix.cc

Issue 414072: sync: get rid of path_helpers (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: delete path_helpers_unittest from gyp Created 11 years, 1 month 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 | « chrome/browser/sync/util/path_helpers_mac.cc ('k') | chrome/browser/sync/util/path_helpers_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/util/path_helpers_posix.cc
===================================================================
--- chrome/browser/sync/util/path_helpers_posix.cc (revision 32906)
+++ chrome/browser/sync/util/path_helpers_posix.cc (working copy)
@@ -1,22 +0,0 @@
-// Copyright (c) 2009 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 "chrome/browser/sync/util/path_helpers.h"
-
-#include "build/build_config.h"
-
-#if ((!defined(OS_LINUX)) && (!defined(OS_MACOSX)))
-#error Compile this file on Mac OS X or Linux only.
-#endif
-
-using std::string;
-
-// Convert /s to :s.
-string MakePathComponentOSLegal(const string& component) {
- if (string::npos == component.find("/"))
- return "";
- string new_name(component);
- std::replace(new_name.begin(), new_name.end(), '/', ':');
- return new_name;
-}
« no previous file with comments | « chrome/browser/sync/util/path_helpers_mac.cc ('k') | chrome/browser/sync/util/path_helpers_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698