summaryrefslogtreecommitdiffstats
path: root/chrome/common/pref_service.h
diff options
context:
space:
mode:
authorrobertshield@google.com <robertshield@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-04 03:22:32 +0000
committerrobertshield@google.com <robertshield@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-04 03:22:32 +0000
commit0bb1a6204af17f50ad0577f811a2c044b2bf62ff (patch)
treea300fc9b01eaddd694d6fb58322862719c5661e7 /chrome/common/pref_service.h
parentbff6ef77683a85e61c5a916ade6c2f85b29e6f62 (diff)
downloadchromium_src-0bb1a6204af17f50ad0577f811a2c044b2bf62ff.zip
chromium_src-0bb1a6204af17f50ad0577f811a2c044b2bf62ff.tar.gz
chromium_src-0bb1a6204af17f50ad0577f811a2c044b2bf62ff.tar.bz2
Add a set of long-running metrics to Chrome that are sent up only at uninstall time via the uninstall survey page.These uninstall metrics are collected according to the same opt-in policy as the existing UMA code. They are stored along with other prefs in the browser's Local State file. At uninstall time, the Local State file is copied to a temporary location during the file deletion stage and then read to extract the uninstall metrics. If the user selected to have metrics reported, the uninstall metrics are then sent up to the uninstall survey page that is currently opened.
Review URL: http://codereview.chromium.org/27092 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10859 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/pref_service.h')
-rw-r--r--chrome/common/pref_service.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/common/pref_service.h b/chrome/common/pref_service.h
index 0a7690c..f5377d2 100644
--- a/chrome/common/pref_service.h
+++ b/chrome/common/pref_service.h
@@ -156,6 +156,13 @@ class PrefService : public NonThreadSafe {
void SetString(const wchar_t* path, const std::wstring& value);
void SetFilePath(const wchar_t* path, const FilePath& value);
+ // Int64 helper methods that actually store the given value as a string.
+ // Note that if obtaining the named value via GetDictionary or GetList, the
+ // Value type will be TYPE_STRING.
+ void SetInt64(const wchar_t* path, int64 value);
+ int64 GetInt64(const wchar_t* path) const;
+ void RegisterInt64Pref(const wchar_t* path, int64 default_value);
+
// Used to set the value of dictionary or list values in the pref tree. This
// will create a dictionary or list if one does not exist in the pref tree.
// This method returns NULL only if you're requesting an unregistered pref or