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

Unified 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, 3 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 | « chrome/browser/ui/ash/system_tray_common.h ('k') | chrome/browser/ui/ash/system_tray_controller_mus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/system_tray_common.cc
diff --git a/chrome/browser/ui/ash/system_tray_common.cc b/chrome/browser/ui/ash/system_tray_common.cc
new file mode 100644
index 0000000000000000000000000000000000000000..d1be323396aa89b232b1393fa77e5b16f055b2d4
--- /dev/null
+++ b/chrome/browser/ui/ash/system_tray_common.cc
@@ -0,0 +1,23 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/ui/ash/system_tray_common.h"
+
+#include "chrome/browser/profiles/profile_manager.h"
+#include "chrome/browser/ui/chrome_pages.h"
+#include "chrome/common/url_constants.h"
+#include "chrome/grit/generated_resources.h"
+#include "content/public/browser/user_metrics.h"
+#include "ui/base/l10n/l10n_util.h"
+
+// static
+void SystemTrayCommon::ShowDateSettings() {
+ content::RecordAction(base::UserMetricsAction("ShowDateOptions"));
+ std::string sub_page =
+ std::string(chrome::kSearchSubPage) + "#" +
+ l10n_util::GetStringUTF8(IDS_OPTIONS_SETTINGS_SECTION_TITLE_DATETIME);
+ // Everybody can change the time zone (even though it is a device setting).
+ chrome::ShowSettingsSubPageForProfile(ProfileManager::GetActiveUserProfile(),
+ sub_page);
+}
« 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