Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc

Issue 2517083002: Enable MD storage manager by default. (Closed)
Patch Set: Rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/settings/md_settings_localized_strings_provide r.h" 5 #include "chrome/browser/ui/webui/settings/md_settings_localized_strings_provide r.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/i18n/number_formatting.h" 10 #include "base/i18n/number_formatting.h"
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 IDS_SETTINGS_STORAGE_CLEAR_DRIVE_CACHE_DIALOG_TITLE}, 618 IDS_SETTINGS_STORAGE_CLEAR_DRIVE_CACHE_DIALOG_TITLE},
619 {"storageClearDriveCacheDialogDescription", 619 {"storageClearDriveCacheDialogDescription",
620 IDS_SETTINGS_STORAGE_CLEAR_DRIVE_CACHE_DESCRIPTION}, 620 IDS_SETTINGS_STORAGE_CLEAR_DRIVE_CACHE_DESCRIPTION},
621 {"storageDeleteAllButtonTitle", 621 {"storageDeleteAllButtonTitle",
622 IDS_SETTINGS_STORAGE_DELETE_ALL_BUTTON_TITLE}}; 622 IDS_SETTINGS_STORAGE_DELETE_ALL_BUTTON_TITLE}};
623 AddLocalizedStringsBulk(html_source, storage_strings, 623 AddLocalizedStringsBulk(html_source, storage_strings,
624 arraysize(storage_strings)); 624 arraysize(storage_strings));
625 625
626 html_source->AddString("naturalScrollLearnMoreLink", 626 html_source->AddString("naturalScrollLearnMoreLink",
627 base::ASCIIToUTF16(chrome::kNaturalScrollHelpURL)); 627 base::ASCIIToUTF16(chrome::kNaturalScrollHelpURL));
628
629 html_source->AddBoolean("showStorageManager",
630 base::CommandLine::ForCurrentProcess()->HasSwitch(
631 chromeos::switches::kEnableMdStorageManager));
632 } 628 }
633 #endif 629 #endif
634 630
635 void AddDownloadsStrings(content::WebUIDataSource* html_source) { 631 void AddDownloadsStrings(content::WebUIDataSource* html_source) {
636 LocalizedString localized_strings[] = { 632 LocalizedString localized_strings[] = {
637 {"downloadsPageTitle", IDS_SETTINGS_DOWNLOADS}, 633 {"downloadsPageTitle", IDS_SETTINGS_DOWNLOADS},
638 {"downloadLocation", IDS_SETTINGS_DOWNLOAD_LOCATION}, 634 {"downloadLocation", IDS_SETTINGS_DOWNLOAD_LOCATION},
639 {"changeDownloadLocation", IDS_SETTINGS_CHANGE_DOWNLOAD_LOCATION}, 635 {"changeDownloadLocation", IDS_SETTINGS_CHANGE_DOWNLOAD_LOCATION},
640 {"promptForDownload", IDS_SETTINGS_PROMPT_FOR_DOWNLOAD}, 636 {"promptForDownload", IDS_SETTINGS_PROMPT_FOR_DOWNLOAD},
641 {"disconnectGoogleDriveAccount", IDS_SETTINGS_DISCONNECT_GOOGLE_DRIVE}, 637 {"disconnectGoogleDriveAccount", IDS_SETTINGS_DISCONNECT_GOOGLE_DRIVE},
(...skipping 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after
1819 #if defined(USE_NSS_CERTS) 1815 #if defined(USE_NSS_CERTS)
1820 AddCertificateManagerStrings(html_source); 1816 AddCertificateManagerStrings(html_source);
1821 #endif 1817 #endif
1822 1818
1823 policy_indicator::AddLocalizedStrings(html_source); 1819 policy_indicator::AddLocalizedStrings(html_source);
1824 1820
1825 html_source->SetJsonPath(kLocalizedStringsFile); 1821 html_source->SetJsonPath(kLocalizedStringsFile);
1826 } 1822 }
1827 1823
1828 } // namespace settings 1824 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/device_page/device_page.js ('k') | chromeos/chromeos_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698