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

Unified Diff: chrome/browser/interstitials/chrome_controller_client.cc

Issue 2455113003: MD Settings: Fix Client Navigations to Search Query URLs (Closed)
Patch Set: merge Created 4 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/ash/system_tray_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/interstitials/chrome_controller_client.cc
diff --git a/chrome/browser/interstitials/chrome_controller_client.cc b/chrome/browser/interstitials/chrome_controller_client.cc
index 29cff458cadaedd7d454a12c3da03d64995ca5c9..2c99b2dc8566b7bfa4fd866fcb81fef2597f2261 100644
--- a/chrome/browser/interstitials/chrome_controller_client.cc
+++ b/chrome/browser/interstitials/chrome_controller_client.cc
@@ -25,8 +25,10 @@
#endif
#if defined(OS_CHROMEOS)
+#include "base/feature_list.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/ui/chrome_pages.h"
+#include "chrome/common/chrome_features.h"
#include "chrome/common/url_constants.h"
#include "chrome/grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
@@ -51,9 +53,14 @@ void LaunchDateAndTimeSettingsOnFile() {
chrome::android::OpenDateAndTimeSettings();
#elif defined(OS_CHROMEOS)
- std::string sub_page =
- std::string(chrome::kSearchSubPage) + "#" +
- l10n_util::GetStringUTF8(IDS_OPTIONS_SETTINGS_SECTION_TITLE_DATETIME);
+ std::string sub_page;
+ if (base::FeatureList::IsEnabled(features::kMaterialDesignSettings)) {
+ sub_page = chrome::kBluetoothSubPage;
Ryan Sleevi 2016/10/27 17:11:12 Date time
tommycli 2016/10/27 17:14:03 Done.
+ } else {
+ sub_page =
+ std::string(chrome::kDeprecatedOptionsSearchSubPage) + "#" +
+ l10n_util::GetStringUTF8(IDS_OPTIONS_SETTINGS_SECTION_TITLE_BLUETOOTH);
Ryan Sleevi 2016/10/27 17:11:12 Shouldn't this be DATETIME?
tommycli 2016/10/27 17:14:03 Done.
+ }
chrome::ShowSettingsSubPageForProfile(ProfileManager::GetActiveUserProfile(),
sub_page);
« no previous file with comments | « no previous file | chrome/browser/ui/ash/system_tray_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698