diff options
author | nsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-03 22:59:43 +0000 |
---|---|---|
committer | nsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-03 22:59:43 +0000 |
commit | 8e50b600ed1e65789109022709cf5c349748fb4c (patch) | |
tree | d9d57344003604647e1a96a56ef4d21921ec44c0 /chrome/browser/profile_manager.h | |
parent | 0c8a8f7aa683ae7d6c8ba176c1db704cc294defb (diff) | |
download | chromium_src-8e50b600ed1e65789109022709cf5c349748fb4c.zip chromium_src-8e50b600ed1e65789109022709cf5c349748fb4c.tar.gz chromium_src-8e50b600ed1e65789109022709cf5c349748fb4c.tar.bz2 |
revert broken change 10833
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10837 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 e8798a2..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(ASCIIToUTF16("name"), &name); - value->GetString(ASCIIToUTF16("id"), &id); - value->GetString(ASCIIToUTF16("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(ASCIIToUTF16("name"), WideToUTF16Hack(name_)); - value->SetString(ASCIIToUTF16("id"), WideToUTF16Hack(id_)); - value->SetString(ASCIIToUTF16("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__ + |