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

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

Issue 10973015: Remove unused code in network_message_observer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/network_message_observer.cc
diff --git a/chrome/browser/chromeos/network_message_observer.cc b/chrome/browser/chromeos/network_message_observer.cc
index 9df2d8af7d0d4284c79fc0537b34cf5169b17830..fce775b3db01f703a022f0c00b6e1a33d0a6366e 100644
--- a/chrome/browser/chromeos/network_message_observer.cc
+++ b/chrome/browser/chromeos/network_message_observer.cc
@@ -25,7 +25,6 @@
#include "chrome/common/pref_names.h"
#include "chrome/common/time_format.h"
#include "grit/generated_resources.h"
-#include "grit/theme_resources.h"
#include "ui/base/l10n/l10n_util.h"
namespace {
@@ -47,29 +46,20 @@ class NetworkMessageNotification : public ash::NetworkTrayDelegate {
NetworkMessageNotification(Profile* profile,
ash::NetworkObserver::MessageType error_type)
: error_type_(error_type) {
- std::string id;
- int icon_id = 0;
switch (error_type) {
case ash::NetworkObserver::ERROR_CONNECT_FAILED:
- id = "network_connection.chromeos";
- icon_id = IDR_NOTIFICATION_NETWORK_FAILED;
title_ = l10n_util::GetStringUTF16(IDS_NETWORK_CONNECTION_ERROR_TITLE);
break;
case ash::NetworkObserver::MESSAGE_DATA_LOW:
- id = "network_low_data.chromeos";
- icon_id = IDR_NOTIFICATION_BARS_CRITICAL;
title_ = l10n_util::GetStringUTF16(IDS_NETWORK_LOW_DATA_TITLE);
break;
case ash::NetworkObserver::MESSAGE_DATA_NONE:
- id = "network_no_data.chromeos";
- icon_id = IDR_NOTIFICATION_BARS_EMPTY;
title_ = l10n_util::GetStringUTF16(IDS_NETWORK_OUT_OF_DATA_TITLE);
break;
case ash::NetworkObserver::MESSAGE_DATA_PROMO:
NOTREACHED();
break;
}
- DCHECK(!id.empty());
}
// Overridden from ash::NetworkTrayDelegate:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698