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

Unified Diff: chrome/browser/chromeos/sms_observer.cc

Issue 10947046: Eliminate kAshNotifyDisabled and SystemNotification (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nit Created 8 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/chromeos/profile_startup.cc ('k') | chrome/browser/feedback/feedback_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/sms_observer.cc
diff --git a/chrome/browser/chromeos/sms_observer.cc b/chrome/browser/chromeos/sms_observer.cc
index 031611c799940d0f09f9b18c4d160db9163cb604..988ef6e8276a5002803de2c7f9925853e2dfb1a0 100644
--- a/chrome/browser/chromeos/sms_observer.cc
+++ b/chrome/browser/chromeos/sms_observer.cc
@@ -4,14 +4,11 @@
#include "chrome/browser/chromeos/sms_observer.h"
-#include "ash/ash_switches.h"
#include "ash/shell.h"
#include "ash/system/network/sms_observer.h"
#include "ash/system/tray/system_tray.h"
-#include "base/command_line.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/chromeos/cros/cros_library.h"
-#include "chrome/browser/chromeos/notifications/system_notification.h"
#include "grit/generated_resources.h"
#include "grit/theme_resources.h"
#include "ui/base/l10n/l10n_util.h"
@@ -109,19 +106,6 @@ void SmsObserver::OnNewMessage(const std::string& modem_device_path,
if (message.text.empty())
return;
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- ash::switches::kAshNotifyDisabled)) {
- SystemNotification note(
- profile_,
- "incoming _sms.chromeos",
- IDR_NOTIFICATION_SMS,
- l10n_util::GetStringFUTF16(
- IDS_SMS_NOTIFICATION_TITLE, UTF8ToUTF16(message.number)));
-
- note.Show(UTF8ToUTF16(message.text), true, false);
- return;
- }
-
// Add an Ash SMS notification. TODO(stevenjb): Replace this code with
// NetworkSmsHandler when fixed: crbug.com/133416.
base::DictionaryValue dict;
« no previous file with comments | « chrome/browser/chromeos/profile_startup.cc ('k') | chrome/browser/feedback/feedback_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698