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

Unified Diff: ui/notifications/notification_types.cc

Issue 12212037: Update notifications API after review. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge conflict resolved Created 7 years, 10 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 | « ui/notifications/notification_types.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/notifications/notification_types.cc
diff --git a/ui/notifications/notification_types.cc b/ui/notifications/notification_types.cc
index cb3ea8410677c30ea087775f7f14484ff34a7efe..cec431efdd12df24626fa9e8d59281720eb4ade5 100644
--- a/ui/notifications/notification_types.cc
+++ b/ui/notifications/notification_types.cc
@@ -22,20 +22,6 @@ const char kItemsKey[] = "items";
const char kItemTitleKey[] = "title";
const char kItemMessageKey[] = "message";
-const char kSimpleType[] = "simple";
-const char kBaseFormatType[] = "base";
-const char kImageType[] = "image";
-const char kMultipleType[] = "multiple";
-
-NotificationType StringToNotificationType(std::string& string_type) {
- // In case of unrecognized string, fall back to most common type.
- return (string_type == kSimpleType) ? NOTIFICATION_TYPE_SIMPLE :
- (string_type == kBaseFormatType) ? NOTIFICATION_TYPE_BASE_FORMAT :
- (string_type == kImageType) ? NOTIFICATION_TYPE_IMAGE :
- (string_type == kMultipleType) ? NOTIFICATION_TYPE_MULTIPLE :
- NOTIFICATION_TYPE_SIMPLE;
-}
-
} // namespace notifications
} // namespace ui
« no previous file with comments | « ui/notifications/notification_types.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698