[NextBrowser] Merging Removing unused setting page items from searh list to M130 82/324582/3
authorSubhajit Suman Mallick <subhajit.sm@partner.samsung.com>
Mon, 28 Apr 2025 06:13:54 +0000 (11:43 +0530)
committerBot Blink <blinkbot@samsung.com>
Fri, 6 Jun 2025 11:31:29 +0000 (11:31 +0000)
Change-Id: I5d9525da4655d68ce6bb5c6609c1053f497791ad
Signed-off-by: Subhajit Suman Mallick <subhajit.sm@partner.samsung.com>
chrome/browser/resources/extensions/toolbar.html
chrome/browser/resources/settings/basic_page/basic_page.html
chrome/browser/resources/settings/route.ts

index 7cd89973a30c2d7b754a1bfe2118fb5fb566b97d..8eced82f65a4484a2412f7ec46e806ef54150a1b 100644 (file)
@@ -74,6 +74,8 @@
     search-prompt="$i18n{search}" clear-label="$i18n{clearSearch}" autofocus
     menu-label="$i18n{mainMenu}" narrow="{{narrow}}" narrow-threshold="1000"
     show-menu="[[narrow]]">
+    <!-- SAMSUNG_NEXT_BROWSER -->
+  <!-- Remove "Developer mode" from Extension page.
   <div class="more-actions">
     <span id="devModeLabel">$i18n{toolbarDevMode}</span>
     <cr-tooltip-icon hidden="[[!shouldDisableDevMode_(
@@ -88,6 +90,8 @@
         checked="[[inDevMode]]" aria-labelledby="devModeLabel">
     </cr-toggle>
   </div>
+  -->
+  <!-- SAMSUNG_NEXT_BROWSER -->
 </cr-toolbar>
 <template is="dom-if" if="[[showPackDialog_]]" restamp>
   <extensions-pack-dialog delegate="[[delegate]]"
index bb65754365c4ffbbdea1e6a48a2995b8bbdaa3fd..3603de3d17270656d3e140d23432d171eb345c35 100644 (file)
             <settings-ai-page prefs="{{prefs}}"></settings-ai-page>
           </settings-section>
         </template>
+        <!-- SAMSUNG_NEXT_BROWSER -->
         <template is="dom-if" if="[[showPage_(pageVisibility.autofill)]]"
             restamp>
           <settings-section page-title="$i18n{autofillPageTitle}"
-              section="autofill">
+              section="autofill" hidden="true">
             <settings-autofill-page prefs="{{prefs}}"></settings-autofill-page>
           </settings-section>
         </template>
 <if expr="not is_chromeos">
         <template is="dom-if" if="[[showPage_(pageVisibility.defaultBrowser)]]"
             restamp>
+          <!-- SAMSUNG_NEXT_BROWSER -->
           <settings-section page-title="$i18n{defaultBrowser}"
-              section="defaultBrowser">
+              section="defaultBrowser" hidden="true">
             <settings-default-browser-page></settings-default-browser-page>
           </settings-section>
         </template>
                   language-helper="{{languageHelper}}">
               </settings-languages>
 </if>
+              <!-- SAMSUNG_NEXT_BROWSER -->
               <settings-section
 <if expr="not chromeos_ash">
                   page-title="$i18n{languagesCardTitle}"
 <if expr="chromeos_ash">
                   page-title="$i18n{languagesPageTitle}"
 </if>
-                  section="languages">
+                  section="languages" hidden="true">  <!-- added hidden="true" for not displaying at search lists -->
 <if expr="chromeos_ash">
                 <cr-link-row id="openChromeOSLanguagesSettings"
                     on-click="onOpenChromeOsLanguagesSettingsClick_"
 <if expr="not chromeos_ash">
             <template is="dom-if" if="[[showPage_(pageVisibility.spellCheck)]]"
                 restamp>
+              <!-- SAMSUNG_NEXT_BROWSER -->
               <settings-section page-title="$i18n{spellCheckTitle}"
                   section="spellCheck" nest-under-section="languages"
-                  id="spellCheckSettingsSection">
+                  id="spellCheckSettingsSection" hidden="true">   <!-- added hidden="true" for not displaying at search lists -->
                 <settings-spell-check-page prefs="{{prefs}}"
                     languages="{{languages}}"
                     language-helper="{{languageHelper}}">
                 </settings-spell-check-page>
               </settings-section>
             </template>
+            <!-- SAMSUNG_NEXT_BROWSER -->
             <settings-section page-title="$i18n{translatePageTitle}"
-                section="translate" nest-under-section="languages">
+                section="translate" nest-under-section="languages" hidden="true">  <!-- added hidden="true" for not displaying at search lists -->
               <settings-translate-page prefs="{{prefs}}"
                   languages="{{languages}}"
                   language-helper="{{languageHelper}}">
 </if>
             <template is="dom-if" if="[[showPage_(pageVisibility.downloads)]]"
                 restamp>
+              <!-- SAMSUNG_NEXT_BROWSER -->
               <settings-section page-title="$i18n{downloadsPageTitle}"
-                  section="downloads">
+                  section="downloads" hidden="true">    <!-- added hidden="true" for not displaying at search lists -->
                 <settings-downloads-page prefs="{{prefs}}">
                 </settings-downloads-page>
               </settings-section>
             </template>
             <template is="dom-if" if="[[showPage_(pageVisibility.a11y)]]"
                 restamp>
+              <!-- SAMSUNG_NEXT_BROWSER -->
               <settings-section page-title="$i18n{a11yPageTitle}"
-                  section="a11y">
+                  section="a11y" hidden="true">    <!-- added hidden="true" for not displaying at search lists -->
                 <settings-a11y-page prefs="{{prefs}}"
                     languages="{{languages}}"
                     language-helper="{{languageHelper}}">
               </settings-section>
             </template>
 <if expr="not chromeos_ash">
+            <!-- SAMSUNG_NEXT_BROWSER -->
             <settings-section page-title="$i18n{systemPageTitle}"
-                section="system">
+                section="system" hidden="true">    <!-- added hidden="true" for not displaying at search lists -->
               <settings-system-page prefs="{{prefs}}"></settings-system-page>
             </settings-section>
 </if>
index 287dd67692105fcf52194989e644814075170f4b..5184cb842fb09f4fd83023ebc89bf088cc5ae67d 100644 (file)
@@ -228,6 +228,7 @@ function createRoutes(): SettingsRoutes {
     r.FONTS = r.APPEARANCE.createChild('/fonts');
   }
 
+  /* Removed unused setting page items of the browser from the search lists
   if (visibility.autofill !== false) {
     r.AUTOFILL = r.BASIC.createSection(
         '/autofill', 'autofill', loadTimeData.getString('autofillPageTitle'));
@@ -242,7 +243,7 @@ function createRoutes(): SettingsRoutes {
     // <if expr="is_win or is_macosx">
     r.PASSKEYS = r.AUTOFILL.createChild('/passkeys');
     // </if>
-  }
+  }*/
 
   if (visibility.privacy !== false) {
     r.PRIVACY = r.BASIC.createSection(
@@ -251,11 +252,12 @@ function createRoutes(): SettingsRoutes {
   }
 
   // <if expr="not is_chromeos">
+  /* Removed unused setting page items of the browser from the search lists
   if (visibility.defaultBrowser !== false) {
     r.DEFAULT_BROWSER = r.BASIC.createSection(
         '/defaultBrowser', 'defaultBrowser',
         loadTimeData.getString('defaultBrowser'));
-  }
+  }*/
   // </if>
 
   r.SEARCH_ENGINES = r.SEARCH.createChild('/searchEngines');
@@ -269,6 +271,7 @@ function createRoutes(): SettingsRoutes {
   if (visibility.advancedSettings !== false) {
     r.ADVANCED = new Route('/advanced');
 
+    /* Removed unused setting page items of the browser from the search lists
     r.LANGUAGES = r.ADVANCED.createSection(
         '/languages', 'languages',
         loadTimeData.getString('languagesPageTitle'));
@@ -294,6 +297,7 @@ function createRoutes(): SettingsRoutes {
     r.SYSTEM = r.ADVANCED.createSection(
         '/system', 'system', loadTimeData.getString('systemPageTitle'));
     // </if>
+    */
 
     if (visibility.reset !== false) {
       r.RESET = r.ADVANCED.createSection(