| Index: chrome/browser/ui/chrome_pages.cc
|
| diff --git a/chrome/browser/ui/chrome_pages.cc b/chrome/browser/ui/chrome_pages.cc
|
| index e2c295c2fa4ad3d4b29bccc0e3d3561f9fd7f740..3b8e4be59ea6c3e0ec030f1ef412160ff238e652 100644
|
| --- a/chrome/browser/ui/chrome_pages.cc
|
| +++ b/chrome/browser/ui/chrome_pages.cc
|
| @@ -108,11 +108,6 @@ void ShowHelpImpl(Browser* browser,
|
| ShowSingletonTab(browser, url);
|
| }
|
|
|
| -bool IsSettingsWindowEnabled() {
|
| - return CommandLine::ForCurrentProcess()->HasSwitch(
|
| - ::switches::kEnableSettingsWindow);
|
| -}
|
| -
|
| } // namespace
|
|
|
| void ShowBookmarkManager(Browser* browser) {
|
| @@ -234,7 +229,7 @@ void ShowSettings(Browser* browser) {
|
| }
|
|
|
| void ShowSettingsSubPage(Browser* browser, const std::string& sub_page) {
|
| - if (IsSettingsWindowEnabled()) {
|
| + if (::switches::SettingsWindowEnabled()) {
|
| ShowSettingsSubPageForProfile(browser->profile(), sub_page);
|
| return;
|
| }
|
| @@ -243,7 +238,7 @@ void ShowSettingsSubPage(Browser* browser, const std::string& sub_page) {
|
|
|
| void ShowSettingsSubPageForProfile(Profile* profile,
|
| const std::string& sub_page) {
|
| - if (IsSettingsWindowEnabled()) {
|
| + if (::switches::SettingsWindowEnabled()) {
|
| content::RecordAction(base::UserMetricsAction("ShowOptions"));
|
| SettingsWindowManager::GetInstance()->ShowChromePageForProfile(
|
| profile, GetSettingsUrl(sub_page));
|
|
|