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

Unified Diff: chrome/browser/sync/util/path_helpers-linux.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sync/util/path_helpers.cc ('k') | chrome/browser/sync/util/path_helpers-posix.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-linux.cc
===================================================================
--- chrome/browser/sync/util/path_helpers-linux.cc (revision 26149)
+++ chrome/browser/sync/util/path_helpers-linux.cc (working copy)
@@ -1,51 +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 <sys/types.h>
-
-#include <glib.h>
-#include <string.h>
-
-#include "base/logging.h"
-#include "base/port.h"
-#include "chrome/browser/sync/util/character_set_converters.h"
-#include "chrome/browser/sync/util/path_helpers.h"
-
-#ifndef OS_LINUX
-#error Compile this file on Linux only.
-#endif
-
-string LastPathSegment(const string& path) {
- string str(path);
- string::size_type final_slash = str.find_last_of('/');
- if (string::npos != final_slash && final_slash == str.length() - 1
- && str.length() > 1) {
- str.erase(final_slash);
- final_slash = str.find_last_of('/');
- }
- if (string::npos == final_slash)
- return str;
- str.erase(0, final_slash + 1);
- return str;
-}
-
-PathString GetFullPath(const PathString& path) {
- // TODO(sync): Not sure what the base of the relative path should be on
- // linux.
- return path;
-}
-
-PathString AppendSlash(const PathString& path) {
- if ((!path.empty()) && (*path.rbegin() != '/')) {
- return path + '/';
- }
- return path;
-}
-
-PathString LowercasePath(const PathString& path) {
- gchar* ret = g_utf8_strdown(path.c_str(), -1);
- PathString retstr(ret);
- g_free(ret);
- return retstr;
-}
« no previous file with comments | « chrome/browser/sync/util/path_helpers.cc ('k') | chrome/browser/sync/util/path_helpers-posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698