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

Unified Diff: chrome/browser/chromeos/status/data_promo_notification.cc

Issue 673713003: Create a NetworkConnect class and Delegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More virtual fixes Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/status/data_promo_notification.cc
diff --git a/chrome/browser/chromeos/status/data_promo_notification.cc b/chrome/browser/chromeos/status/data_promo_notification.cc
index 0985b5d58bc8d610cbd91b67b1dccd26f16b1ca6..a69fb141ef7988dc49ba47105e7d40e5dac761ac 100644
--- a/chrome/browser/chromeos/status/data_promo_notification.cc
+++ b/chrome/browser/chromeos/status/data_promo_notification.cc
@@ -39,6 +39,8 @@ namespace chromeos {
namespace {
+const char kDataPromoNotificationId[] = "chrome://settings/internet/data_promo";
+
const int kNotificationCountPrefDefault = -1;
bool GetBooleanPref(const char* pref_name) {
@@ -121,7 +123,7 @@ const chromeos::MobileConfig::CarrierDeal* GetCarrierDeal(
void NotificationClicked(const std::string& service_path,
const std::string& info_url) {
if (info_url.empty())
- ash::network_connect::ShowNetworkSettings(service_path);
+ ash::NetworkConnect::Get()->ShowNetworkSettings(service_path);
chrome::ScopedTabbedBrowserDisplayer displayer(
ProfileManager::GetPrimaryUserProfile(),
@@ -213,13 +215,9 @@ void DataPromoNotification::ShowOptionalMobileDataPromoNotification() {
message_center::MessageCenter::Get()->AddNotification(
message_center::Notification::CreateSystemNotification(
- ash::network_connect::kNetworkActivateNotificationId,
- base::string16() /* title */,
- message,
- icon,
+ kDataPromoNotificationId, base::string16() /* title */, message, icon,
ash::system_notifier::kNotifierNetwork,
- base::Bind(&NotificationClicked,
- default_network->path(), info_url)));
+ base::Bind(&NotificationClicked, default_network->path(), info_url)));
check_for_promo_ = false;
SetShow3gPromoNotification(false);
« no previous file with comments | « chrome/browser/chromeos/options/wimax_config_view.cc ('k') | chrome/browser/chromeos/status/network_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698