| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/ui/ash/system_tray_common.h" |
| 6 |
| 7 #include "chrome/browser/profiles/profile_manager.h" |
| 8 #include "chrome/browser/ui/chrome_pages.h" |
| 9 #include "chrome/common/url_constants.h" |
| 10 #include "chrome/grit/generated_resources.h" |
| 11 #include "content/public/browser/user_metrics.h" |
| 12 #include "ui/base/l10n/l10n_util.h" |
| 13 |
| 14 // static |
| 15 void SystemTrayCommon::ShowDateSettings() { |
| 16 content::RecordAction(base::UserMetricsAction("ShowDateOptions")); |
| 17 std::string sub_page = |
| 18 std::string(chrome::kSearchSubPage) + "#" + |
| 19 l10n_util::GetStringUTF8(IDS_OPTIONS_SETTINGS_SECTION_TITLE_DATETIME); |
| 20 // Everybody can change the time zone (even though it is a device setting). |
| 21 chrome::ShowSettingsSubPageForProfile(ProfileManager::GetActiveUserProfile(), |
| 22 sub_page); |
| 23 } |
| OLD | NEW |