Mechanism to clear data through "Reset to default" setting

- Added hooks in BrowserYesNoPreference to support a third
  button.
- Enabled the third button for "Reset to default" setting
- If user clicks on this new button, it'll also clear the
  private data (history, cache, etc)

Change-Id: I7b224805d2ab8ef440a13948821c871b0b4a791e
diff --git a/res/values/attrs_tiles.xml b/res/values/attrs.xml
similarity index 87%
rename from res/values/attrs_tiles.xml
rename to res/values/attrs.xml
index d6ec292..3e62261 100644
--- a/res/values/attrs_tiles.xml
+++ b/res/values/attrs.xml
@@ -40,4 +40,9 @@
         <attr name="android:label" />
     </declare-styleable>
 
+    <declare-styleable name="BrowserYesNoPreference">
+        <attr name="positiveButtonText" format="string|reference" />
+        <attr name="negativeButtonText" format="string|reference" />
+        <attr name="neutralButtonText" format="string|reference" />
+    </declare-styleable>
 </resources>
diff --git a/res/xml/general_preferences.xml b/res/xml/general_preferences.xml
index 75b4600..88d0e32 100644
--- a/res/xml/general_preferences.xml
+++ b/res/xml/general_preferences.xml
@@ -14,8 +14,8 @@
      limitations under the License.
 -->
 
-<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
-
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto" >
     <PreferenceCategory
         android:layout="@layout/swe_preference_category_first"
         android:title="@string/pref_general_title">
@@ -107,6 +107,7 @@
             android:key="reset_default_preferences"
             android:title="@string/pref_extras_reset_default"
             android:summary="@string/pref_extras_reset_default_summary"
+            app:neutralButtonText="@string/website_settings_clear_all"
             android:dialogMessage="@string/pref_extras_reset_default_dlg"
             android:dialogIcon="@android:drawable/ic_dialog_alert" />