Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / chromeos / status / data_promo_notification.cc
index 0985b5d..0cf7b9c 100644 (file)
@@ -4,8 +4,6 @@
 
 #include "chrome/browser/chromeos/status/data_promo_notification.h"
 
-#include "ash/resources/grit/ash_resources.h"
-#include "ash/system/chromeos/network/network_connect.h"
 #include "ash/system/system_notifier.h"
 #include "base/prefs/pref_registry_simple.h"
 #include "base/prefs/pref_service.h"
 #include "chromeos/network/network_event_log.h"
 #include "chromeos/network/network_state.h"
 #include "chromeos/network/network_state_handler.h"
+#include "grit/ui_chromeos_resources.h"
 #include "third_party/cros_system_api/dbus/service_constants.h"
 #include "ui/base/l10n/l10n_util.h"
 #include "ui/base/resource/resource_bundle.h"
+#include "ui/chromeos/network/network_connect.h"
+#include "ui/chromeos/network/network_state_notifier.h"
 #include "ui/message_center/message_center.h"
 #include "ui/message_center/notification.h"
 #include "ui/views/view.h"
@@ -39,6 +40,8 @@ namespace chromeos {
 
 namespace {
 
+const char kDataPromoNotificationId[] = "chrome://settings/internet/data_promo";
+
 const int kNotificationCountPrefDefault = -1;
 
 bool GetBooleanPref(const char* pref_name) {
@@ -121,7 +124,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);
+    ui::NetworkConnect::Get()->ShowNetworkSettings(service_path);
 
   chrome::ScopedTabbedBrowserDisplayer displayer(
       ProfileManager::GetPrimaryUserProfile(),
@@ -213,13 +216,9 @@ void DataPromoNotification::ShowOptionalMobileDataPromoNotification() {
 
   message_center::MessageCenter::Get()->AddNotification(
       message_center::Notification::CreateSystemNotification(
-          ash::network_connect::kNetworkActivateNotificationId,
-          base::string16() /* title */,
-          message,
-          icon,
-          ash::system_notifier::kNotifierNetwork,
-          base::Bind(&NotificationClicked,
-                     default_network->path(), info_url)));
+          kDataPromoNotificationId, base::string16() /* title */, message, icon,
+          ui::NetworkStateNotifier::kNotifierNetwork,
+          base::Bind(&NotificationClicked, default_network->path(), info_url)));
 
   check_for_promo_ = false;
   SetShow3gPromoNotification(false);