Hide "Make searches and browsing better" when unified consent is disabled.

This CL hides the "Make searches and browsing better" settings from the
privacy settings when unified consent is disabled.

Bug: 863950
Change-Id: Ia392cebae7eb8327b6dcea6427e504d84c11d17b
Reviewed-on: https://chromium-review.googlesource.com/1145315
Reviewed-by: Scott Chen <scottchen@chromium.org>
Commit-Queue: Mihai Sardarescu <msarda@chromium.org>
Cr-Commit-Position: refs/heads/master@{#576951}
diff --git a/chrome/browser/resources/settings/privacy_page/personalization_options.html b/chrome/browser/resources/settings/privacy_page/personalization_options.html
index 344da18..c3e2807 100644
--- a/chrome/browser/resources/settings/privacy_page/personalization_options.html
+++ b/chrome/browser/resources/settings/privacy_page/personalization_options.html
@@ -76,12 +76,14 @@
     </settings-toggle-button>
 </if><!-- not chromeos -->
 </if><!-- _google_chrome -->
-    <settings-toggle-button
-        pref="{{prefs.url_keyed_anonymized_data_collection.enabled}}"
-        label="$i18n{urlKeyedAnonymizedDataCollection}"
-        sub-label="$i18n{urlKeyedAnonymizedDataCollectionDesc}"
-        disabled="[[unifiedConsentGiven]]">
-    </settings-toggle-button>
+    <template is="dom-if" if="[[unifiedConsentEnabled]]">
+      <settings-toggle-button
+          pref="{{prefs.url_keyed_anonymized_data_collection.enabled}}"
+          label="$i18n{urlKeyedAnonymizedDataCollection}"
+          sub-label="$i18n{urlKeyedAnonymizedDataCollectionDesc}"
+          disabled="[[unifiedConsentGiven]]">
+      </settings-toggle-button>
+    </template>
 <if expr="_google_chrome">
     <template is="dom-if" if="[[!unifiedConsentEnabled]]">
       <settings-toggle-button id="spellCheckControl"