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

Unified Diff: chrome/browser/notifications/notification_ui_manager_android.cc

Issue 247943003: Allow compiling Android with notifications=1, add stubbed UI manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review comments Created 6 years, 8 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
Index: chrome/browser/notifications/notification_ui_manager_android.cc
diff --git a/chrome/browser/notifications/notification_ui_manager_android.cc b/chrome/browser/notifications/notification_ui_manager_android.cc
new file mode 100644
index 0000000000000000000000000000000000000000..5a0c05852f5fee16463d763adeb77c37cc9d6582
--- /dev/null
+++ b/chrome/browser/notifications/notification_ui_manager_android.cc
@@ -0,0 +1,58 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/notifications/notification_ui_manager_android.h"
+
+#include "base/logging.h"
+
+// static
+NotificationUIManager* NotificationUIManager::Create(PrefService* local_state) {
+ return new NotificationUIManagerAndroid();
+}
+
+NotificationUIManagerAndroid::NotificationUIManagerAndroid() {
+}
+
+NotificationUIManagerAndroid::~NotificationUIManagerAndroid() {
+}
+
+void NotificationUIManagerAndroid::Add(const Notification& notification,
+ Profile* profile) {
+ // TODO(peter): Implement the NotificationUIManagerAndroid class.
+ NOTIMPLEMENTED();
+}
+
+bool NotificationUIManagerAndroid::Update(const Notification& notification,
+ Profile* profile) {
+ return false;
+}
+
+const Notification* NotificationUIManagerAndroid::FindById(
+ const std::string& notification_id) const {
+ return 0;
+}
+
+bool NotificationUIManagerAndroid::CancelById(
+ const std::string& notification_id) {
+ return false;
+}
+
+std::set<std::string>
+NotificationUIManagerAndroid::GetAllIdsByProfileAndSourceOrigin(
+ Profile* profile,
+ const GURL& source) {
+ return std::set<std::string>();
+}
+
+bool NotificationUIManagerAndroid::CancelAllBySourceOrigin(
+ const GURL& source_origin) {
+ return false;
+}
+
+bool NotificationUIManagerAndroid::CancelAllByProfile(Profile* profile) {
+ return false;
+}
+
+void NotificationUIManagerAndroid::CancelAll() {
+}

Powered by Google App Engine
This is Rietveld 408576698