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

Side by Side Diff: chrome/browser/sync/util/character_set_converters_win.cc

Issue 2833047: sync: Get rid of the now obsolete character_set_converters.h API. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: fix indent Created 10 years, 5 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "base/utf_string_conversions.h"
6 #include "chrome/browser/sync/util/character_set_converters.h"
7
8 namespace browser_sync {
9
10 // Returns UTF8 string from the given FilePath.
11 std::string FilePathToUTF8(const FilePath& file_path) {
12 return WideToUTF8(file_path.value());
13 }
14
15 // Returns FilePath from the given UTF8 string.
16 FilePath UTF8ToFilePath(const std::string& utf8) {
17 return FilePath(UTF8ToWide(utf8));
18 }
19
20 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/util/character_set_converters_posix.cc ('k') | chrome/browser/sync/util/user_settings_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698