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

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

Issue 2526893003: chromeos: Add NoteTakingHelper class. (Closed)
Patch Set: drop is-note-taking-app-window stuff Created 4 years 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.cc
diff --git a/chrome/browser/download/notification/download_item_notification.cc b/chrome/browser/download/notification/download_item_notification.cc
index dfaed46448c630dbcdad2e2281808645004a462b..4ed7ee1bed11c7d6a752ece6b08d54c1ada10350 100644
--- a/chrome/browser/download/notification/download_item_notification.cc
+++ b/chrome/browser/download/notification/download_item_notification.cc
@@ -46,7 +46,7 @@
#include "ui/message_center/message_center_style.h"
#if defined(OS_CHROMEOS)
-#include "chrome/browser/chromeos/note_taking_app_utils.h"
+#include "chrome/browser/chromeos/note_taking_helper.h"
#endif // defined(OS_CHROMEOS)
using base::UserMetricsAction;
@@ -655,7 +655,7 @@ DownloadItemNotification::GetExtraActions() const {
if (!notification_->image().IsEmpty()) {
actions->push_back(DownloadCommands::COPY_TO_CLIPBOARD);
#if defined(OS_CHROMEOS)
- if (chromeos::IsNoteTakingAppAvailable(profile()))
+ if (chromeos::NoteTakingHelper::Get()->IsAppAvailable(profile()))
actions->push_back(DownloadCommands::ANNOTATE);
#endif // defined(OS_CHROMEOS)
}

Powered by Google App Engine
This is Rietveld 408576698