From 4ede4f7d09cf701f1f1b8f376f96cf40d67e5dfc Mon Sep 17 00:00:00 2001 From: "gspencer@chromium.org" Date: Fri, 31 Aug 2012 19:52:57 +0000 Subject: This implements default actions for the file manger as syncable prefs that can associate MIME types or filename suffixes with drive apps and extensions. BUG=chromium:130342,chromium:136839 TEST=Tested on device in UI. Review URL: https://chromiumcodereview.appspot.com/10868079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154486 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/ui/browser_ui_prefs.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'chrome/browser/ui/browser_ui_prefs.cc') diff --git a/chrome/browser/ui/browser_ui_prefs.cc b/chrome/browser/ui/browser_ui_prefs.cc index 19eb514..da8b152 100644 --- a/chrome/browser/ui/browser_ui_prefs.cc +++ b/chrome/browser/ui/browser_ui_prefs.cc @@ -141,9 +141,12 @@ void RegisterBrowserUserPrefs(PrefService* prefs) { prefs->RegisterBooleanPref(prefs::kImportSavedPasswords, true, PrefService::UNSYNCABLE_PREF); - // The map of timestamps of the last used file browser handlers. - prefs->RegisterDictionaryPref(prefs::kLastUsedFileBrowserHandlers, - PrefService::UNSYNCABLE_PREF); + + // Dictionaries to keep track of default tasks in the file browser. + prefs->RegisterDictionaryPref(prefs::kDefaultTasksByMimeType, + PrefService::SYNCABLE_PREF); + prefs->RegisterDictionaryPref(prefs::kDefaultTasksBySuffix, + PrefService::SYNCABLE_PREF); // We need to register the type of these preferences in order to query // them even though they're only typically controlled via policy. -- cgit v1.1