diff options
author | nsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-03 20:46:40 +0000 |
---|---|---|
committer | nsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-03 20:46:40 +0000 |
commit | 6470ee8f59dba5eecfce4a64d7ff3930ae716095 (patch) | |
tree | 86e020619f32c56f5796a0ea20975c71607ac91f /chrome/browser/profile_manager.h | |
parent | 409993dec55a874e0659acf421a87070d450a262 (diff) | |
download | chromium_src-6470ee8f59dba5eecfce4a64d7ff3930ae716095.zip chromium_src-6470ee8f59dba5eecfce4a64d7ff3930ae716095.tar.gz chromium_src-6470ee8f59dba5eecfce4a64d7ff3930ae716095.tar.bz2 |
Revert dsh's change 10818
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10821 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profile_manager.h')
-rw-r--r-- | chrome/browser/profile_manager.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/chrome/browser/profile_manager.h b/chrome/browser/profile_manager.h index ba8581d..3735492 100644 --- a/chrome/browser/profile_manager.h +++ b/chrome/browser/profile_manager.h @@ -15,7 +15,6 @@ #include "base/file_path.h" #include "base/message_loop.h" #include "base/non_thread_safe.h" -#include "base/string_util.h" #include "base/system_monitor.h" #include "base/values.h" #include "chrome/browser/profile.h" @@ -34,21 +33,20 @@ class AvailableProfile { // Decodes a DictionaryValue into an AvailableProfile static AvailableProfile* FromValue(DictionaryValue* value) { DCHECK(value); - string16 name, id; + std::wstring name, id; FilePath::StringType directory; - value->GetString(LIT16("name"), &name); - value->GetString(LIT16("id"), &id); - value->GetString(LIT16("directory"), &directory); - return new AvailableProfile(UTF16ToWideHack(name), UTF16ToWideHack(id), - FilePath(directory)); + value->GetString(L"name", &name); + value->GetString(L"id", &id); + value->GetString(L"directory", &directory); + return new AvailableProfile(name, id, FilePath(directory)); } // Encodes this AvailableProfile into a new DictionaryValue DictionaryValue* ToValue() { DictionaryValue* value = new DictionaryValue; - value->SetString(LIT16("name"), WideToUTF16Hack(name_)); - value->SetString(LIT16("id"), WideToUTF16Hack(id_)); - value->SetString(LIT16("directory"), directory_.value()); + value->SetString(L"name", name_); + value->SetString(L"id", id_); + value->SetString(L"directory", directory_.value()); return value; } @@ -185,3 +183,4 @@ class ProfileManager : public NonThreadSafe, }; #endif // CHROME_BROWSER_PROFILE_MANAGER_H__ + |