diff options
author | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-04 16:58:12 +0000 |
---|---|---|
committer | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-04 16:58:12 +0000 |
commit | ff4c1d8cd62bad8351b44ee39145e5a6dc8fdf7f (patch) | |
tree | 8a8d04fe8c8ec3d1c1be30d13c92cb7d7b73561b /chrome/browser/background_contents_service.cc | |
parent | 9792cc8882b31a267d1326a722aac80f053da0e0 (diff) | |
download | chromium_src-ff4c1d8cd62bad8351b44ee39145e5a6dc8fdf7f.zip chromium_src-ff4c1d8cd62bad8351b44ee39145e5a6dc8fdf7f.tar.gz chromium_src-ff4c1d8cd62bad8351b44ee39145e5a6dc8fdf7f.tar.bz2 |
Rename DictionaryValue's SetStringFromUTF16() to SetString() (and overload).
Also do a bunch of drive-by changes while I'm at it.
Still to do: rename GetStringAsUTF16() to GetString().
BUG=none
TEST=builds everywhere, tests pass
Review URL: http://codereview.chromium.org/3033050
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54915 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/background_contents_service.cc')
-rw-r--r-- | chrome/browser/background_contents_service.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/background_contents_service.cc b/chrome/browser/background_contents_service.cc index 3c0e003..927d169 100644 --- a/chrome/browser/background_contents_service.cc +++ b/chrome/browser/background_contents_service.cc @@ -34,8 +34,8 @@ // <appid_2>: { "url": <url2>, "name": <frame_name> }, // ... etc ... // } -const wchar_t kUrlKey[] = L"url"; -const wchar_t kFrameNameKey[] = L"name"; +const char kUrlKey[] = "url"; +const char kFrameNameKey[] = "name"; BackgroundContentsService::BackgroundContentsService( Profile* profile, const CommandLine* command_line) @@ -220,7 +220,7 @@ void BackgroundContentsService::RegisterBackgroundContents( // No entry for this application yet, so add one. DictionaryValue* dict = new DictionaryValue(); dict->SetString(kUrlKey, background_contents->GetURL().spec()); - dict->SetStringFromUTF16(kFrameNameKey, contents_map_[appid].frame_name); + dict->SetString(kFrameNameKey, contents_map_[appid].frame_name); pref->SetWithoutPathExpansion(UTF16ToWide(appid), dict); prefs_->ScheduleSavePersistentPrefs(); } |