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

Unified Diff: chrome/browser/download/notification/download_item_notification.h

Issue 1365963004: Don't compile download notification code on !CrOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: images and strings Created 5 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
Index: chrome/browser/download/notification/download_item_notification.h
diff --git a/chrome/browser/download/notification/download_item_notification.h b/chrome/browser/download/notification/download_item_notification.h
index d712893d521c2bac6a65d76039a1c6ad3168f61c..ce5c97b14c84dabcdbd1bfdfd81550cd3f37cc10 100644
--- a/chrome/browser/download/notification/download_item_notification.h
+++ b/chrome/browser/download/notification/download_item_notification.h
@@ -18,10 +18,7 @@
#include "third_party/skia/include/core/SkColor.h"
#include "ui/message_center/message_center.h"
#include "ui/message_center/message_center_observer.h"
-
-#if !defined(OS_MACOSX)
#include "ui/native_theme/native_theme.h"
-#endif
namespace test {
class DownloadItemNotificationTest;
@@ -67,10 +64,7 @@ class DownloadItemNotification : public DownloadNotification,
// Set icon of the notification.
void SetNotificationIcon(int resource_id);
-
-#if !defined(OS_MACOSX)
void SetNotificationVectorIcon(gfx::VectorIconId id, SkColor color);
-#endif
// Set preview image of the notification. Must be called on IO thread.
void OnImageLoaded(const std::string& image_data);
@@ -112,9 +106,7 @@ class DownloadItemNotification : public DownloadNotification,
bool visible_ = false;
int image_resource_id_ = 0;
-#if !defined(OS_MACOSX)
std::pair<gfx::VectorIconId, SkColor> vector_icon_params_;
-#endif
content::DownloadItem::DownloadState previous_download_state_ =
content::DownloadItem::MAX_DOWNLOAD_STATE; // As uninitialized state
bool previous_dangerous_state_ = false;

Powered by Google App Engine
This is Rietveld 408576698