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

Side by Side Diff: chrome\browser\sync\util\path_helpers_posix.cc

Issue 193103: Build sync engine as part of the browser build (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 <pwd.h> 5 #include <pwd.h>
6 #include <string.h> 6 #include <string.h>
7 7
8 #include "chrome/browser/sync/util/path_helpers.h" 8 #include "chrome/browser/sync/util/path_helpers.h"
9 9
10 #if ((!defined(OS_LINUX)) && (!defined(OS_MACOSX))) 10 #if ((!defined(OS_LINUX)) && (!defined(OS_MACOSX)))
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 // Convert /s to :s. 88 // Convert /s to :s.
89 PathString MakePathComponentOSLegal(const PathString& component) { 89 PathString MakePathComponentOSLegal(const PathString& component) {
90 if (PathString::npos == component.find("/")) 90 if (PathString::npos == component.find("/"))
91 return PSTR(""); 91 return PSTR("");
92 PathString new_name; 92 PathString new_name;
93 new_name.reserve(component.size()); 93 new_name.reserve(component.size());
94 StringReplace(component, "/", ":", true, &new_name); 94 StringReplace(component, "/", ":", true, &new_name);
95 return new_name; 95 return new_name;
96 } 96 }
OLDNEW
« no previous file with comments | « chrome\browser\sync\util\path_helpers_linux.cc ('k') | chrome\browser\sync\util\user_settings_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698