summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/preferences.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-29 20:35:19 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-29 20:35:19 +0000
commitddd231eaa03153f6d04894cceb0b4480755e1277 (patch)
treefaafed02945c1f8934e6e393ac0c6b094c303cdf /chrome/browser/chromeos/preferences.h
parentc5e30d8572ffae1e0d4fbb2fff765f9a8cbace77 (diff)
downloadchromium_src-ddd231eaa03153f6d04894cceb0b4480755e1277.zip
chromium_src-ddd231eaa03153f6d04894cceb0b4480755e1277.tar.gz
chromium_src-ddd231eaa03153f6d04894cceb0b4480755e1277.tar.bz2
Change a bunch of string types.
Started out just trying to change PrefService::GetString and ::SetString. This snowballed a little bit. Had to change a bunch of url strings in search_engines/ from wstring to string (some of them may be better off as GURLs, but UTF-8 is a step in the right direction, since that's what GURL uses internally, as well as externally via its setters/getters). TODO (later patch): things that ask for accepted languages should use std::string, not std::wstring. BUG=none TEST=try bots Review URL: http://codereview.chromium.org/2854015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51157 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/preferences.h')
-rw-r--r--chrome/browser/chromeos/preferences.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/chromeos/preferences.h b/chrome/browser/chromeos/preferences.h
index 1d02b34..9f1770c 100644
--- a/chrome/browser/chromeos/preferences.h
+++ b/chrome/browser/chromeos/preferences.h
@@ -43,7 +43,7 @@ class Preferences : public NotificationObserver {
virtual void NotifyPrefChanged(const std::wstring* pref_name);
private:
- void SetTimeZone(const std::wstring& id);
+ void SetTimeZone(const std::string& id);
// Writes boolean |value| to the input method (IBus) configuration daemon.
// |section| (e.g. "general") and |name| (e.g. "use_global_engine") should
@@ -62,19 +62,19 @@ class Preferences : public NotificationObserver {
// |section| and |name| should not be NULL.
void SetLanguageConfigString(const char* section,
const char* name,
- const std::wstring& value);
+ const std::string& value);
// Writes a string list to the input method (IBus) configuration daemon.
// |section| and |name| should not be NULL.
void SetLanguageConfigStringList(const char* section,
const char* name,
- const std::vector<std::wstring>& values);
+ const std::vector<std::string>& values);
// A variant of SetLanguageConfigStringList. You can pass comma-separated
// values. Examples of |value|: "", "Control+space,Hiragana"
void SetLanguageConfigStringListAsCSV(const char* section,
const char* name,
- const std::wstring& value);
+ const std::string& value);
StringPrefMember timezone_;
BooleanPrefMember tap_to_click_enabled_;