Bug 624894 - Enable pref syncing for fennec [r=mfinkle]
authorMatt Brubeck <mbrubeck@mozilla.com>
Wed, 12 Jan 2011 20:48:27 -0800
changeset 67249 12350e07fcace910f2137e52ed744b9c6bbe3523
parent 67248 51b46d490effd482b118fc30053bb7032b8fee42
child 67250 c04530ce77e9fdbe393861c40813e8b979e3a9a0
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs624894
Bug 624894 - Enable pref syncing for fennec [r=mfinkle]
mobile/app/mobile.js
--- a/mobile/app/mobile.js
+++ b/mobile/app/mobile.js
@@ -391,19 +391,16 @@ pref("browser.ui.pinch.scalingFactor", 5
 // Touch radius (area around the touch location to look for target elements),
 // in 1/240-inch pixels:
 pref("browser.ui.touch.left", 8);
 pref("browser.ui.touch.right", 8);
 pref("browser.ui.touch.top", 12);
 pref("browser.ui.touch.bottom", 4);
 pref("browser.ui.touch.weight.visited", 120); // percentage
 
-// Sync
-pref("browser.sync.enabled", true);
-
 // plugins
 pref("plugin.disable", true);
 pref("dom.ipc.plugins.enabled", false);
 
 // product URLs
 // The breakpad report server to link to in about:crashes
 pref("breakpad.reportURL", "http://crash-stats.mozilla.com/report/index/");
 pref("app.releaseNotesURL", "http://www.mozilla.com/%LOCALE%/mobile/%VERSION%/releasenotes/");
@@ -497,20 +494,37 @@ pref("editor.singleLine.pasteNewlines", 
 pref("font.default.x-baltic", "SwissA");
 pref("font.default.x-central-euro", "SwissA");
 pref("font.default.x-cyrillic", "SwissA");
 pref("font.default.x-unicode", "SwissA");
 pref("font.default.x-user-def", "SwissA");
 pref("font.default.x-western", "SwissA");
 #endif
 
+#ifdef MOZ_SERVICES_SYNC
+pref("browser.sync.enabled", true);
+
 // sync service
 pref("services.sync.client.type", "mobile");
-pref("services.sync.registerEngines", "Tab,Bookmarks,Form,History,Password");
+pref("services.sync.registerEngines", "Tab,Bookmarks,Form,History,Password,Prefs");
 pref("services.sync.autoconnectDelay", 5);
 
+// prefs to sync by default
+pref("services.sync.prefs.sync.browser.startup.homepage.title", true);
+pref("services.sync.prefs.sync.browser.startup.homepage", true);
+pref("services.sync.prefs.sync.browser.tabs.warnOnClose", true);
+pref("services.sync.prefs.sync.browser.ui.zoom.reflow", true);
+pref("services.sync.prefs.sync.devtools.errorconsole.enabled", true);
+pref("services.sync.prefs.sync.javascript.enabled", true);
+pref("services.sync.prefs.sync.lightweightThemes.isThemeSelected", true);
+pref("services.sync.prefs.sync.lightweightThemes.usedThemes", true);
+pref("services.sync.prefs.sync.network.cookie.cookieBehavior", true);
+pref("services.sync.prefs.sync.permissions.default.image", true);
+pref("services.sync.prefs.sync.signon.rememberSignons", true);
+#endif
+
 // threshold where a tap becomes a drag, in 1/240" reference pixels
 pref("ui.dragThreshold", 24);
 
 pref("layers.acceleration.disabled", true);
 
 pref("notification.feature.enabled", true);
 pref("indexedDB.feature.enabled", false);