| 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);
|
| +}
|
|
|