| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/status/data_promo_notification.h" | 5 #include "chrome/browser/chromeos/status/data_promo_notification.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/chromeos/login/helper.h" | 10 #include "chrome/browser/chromeos/login/helper.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "chromeos/login/login_state.h" | 22 #include "chromeos/login/login_state.h" |
| 23 #include "chromeos/network/device_state.h" | 23 #include "chromeos/network/device_state.h" |
| 24 #include "chromeos/network/network_connection_handler.h" | 24 #include "chromeos/network/network_connection_handler.h" |
| 25 #include "chromeos/network/network_event_log.h" | 25 #include "chromeos/network/network_event_log.h" |
| 26 #include "chromeos/network/network_state.h" | 26 #include "chromeos/network/network_state.h" |
| 27 #include "chromeos/network/network_state_handler.h" | 27 #include "chromeos/network/network_state_handler.h" |
| 28 #include "components/prefs/pref_registry_simple.h" | 28 #include "components/prefs/pref_registry_simple.h" |
| 29 #include "components/prefs/pref_service.h" | 29 #include "components/prefs/pref_service.h" |
| 30 #include "content/public/browser/user_metrics.h" | 30 #include "content/public/browser/user_metrics.h" |
| 31 #include "extensions/browser/extension_registry.h" | 31 #include "extensions/browser/extension_registry.h" |
| 32 #include "grit/ui_chromeos_resources.h" | |
| 33 #include "third_party/cros_system_api/dbus/service_constants.h" | 32 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 34 #include "ui/base/l10n/l10n_util.h" | 33 #include "ui/base/l10n/l10n_util.h" |
| 35 #include "ui/base/resource/resource_bundle.h" | 34 #include "ui/base/resource/resource_bundle.h" |
| 36 #include "ui/chromeos/network/network_connect.h" | 35 #include "ui/chromeos/network/network_connect.h" |
| 37 #include "ui/chromeos/network/network_state_notifier.h" | 36 #include "ui/chromeos/network/network_state_notifier.h" |
| 37 #include "ui/chromeos/resources/grit/ui_chromeos_resources.h" |
| 38 #include "ui/message_center/message_center.h" | 38 #include "ui/message_center/message_center.h" |
| 39 #include "ui/message_center/notification.h" | 39 #include "ui/message_center/notification.h" |
| 40 #include "ui/views/view.h" | 40 #include "ui/views/view.h" |
| 41 #include "ui/views/widget/widget.h" | 41 #include "ui/views/widget/widget.h" |
| 42 | 42 |
| 43 namespace chromeos { | 43 namespace chromeos { |
| 44 | 44 |
| 45 namespace { | 45 namespace { |
| 46 | 46 |
| 47 const char kDataPromoNotificationId[] = "chrome://settings/internet/data_promo"; | 47 const char kDataPromoNotificationId[] = "chrome://settings/internet/data_promo"; |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 SetDataSaverPromptsShown(0); // demo mode resets times shown counts. | 313 SetDataSaverPromptsShown(0); // demo mode resets times shown counts. |
| 314 SetShow3gPromoNotification(true); | 314 SetShow3gPromoNotification(true); |
| 315 } else { | 315 } else { |
| 316 SetDataSaverPromptsShown(times_shown + 1); | 316 SetDataSaverPromptsShown(times_shown + 1); |
| 317 } | 317 } |
| 318 | 318 |
| 319 return true; | 319 return true; |
| 320 } | 320 } |
| 321 | 321 |
| 322 } // namespace chromeos | 322 } // namespace chromeos |
| OLD | NEW |