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

Side by Side Diff: chrome/browser/ui/ash/system_tray_common.cc

Issue 2360143004: mash: Add SystemTrayClient interface, use to show date settings (Closed)
Patch Set: reparent 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 unified diff | Download patch
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/system_tray_common.h ('k') | chrome/browser/ui/ash/system_tray_controller_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698