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

Unified Diff: chrome/browser/sync/util/sync_types.h

Issue 429003: Final part of PathString cleanup. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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/query_helpers.h ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/util/sync_types.h
===================================================================
--- chrome/browser/sync/util/sync_types.h (revision 32749)
+++ chrome/browser/sync/util/sync_types.h (working copy)
@@ -12,10 +12,6 @@
#include "base/string_util.h"
#include "build/build_config.h"
-#define PSTR(s) s
-#define PSTR_CHAR char
-typedef std::string PathString;
-
#if !defined(OS_WIN)
// Mac OS X typedef's BOOL to signed char, so we do that on Linux too.
typedef signed char BOOL;
@@ -33,21 +29,10 @@
#endif
#endif
-typedef PathString::value_type PathChar;
-
-inline size_t CountBytes(const std::wstring& s) {
- return s.size() * sizeof(std::wstring::value_type);
-}
-
inline size_t CountBytes(const std::string &s) {
return s.size() * sizeof(std::string::value_type);
}
-inline PathString IntToPathString(int digit) {
- std::string tmp = StringPrintf("%d", digit);
- return PathString(tmp.begin(), tmp.end());
-}
-
const size_t kSyncProtocolMaxNameLengthBytes = 255;
#endif // CHROME_BROWSER_SYNC_UTIL_SYNC_TYPES_H_
« no previous file with comments | « chrome/browser/sync/util/query_helpers.h ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698