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

Unified Diff: chrome/browser/ui/ash/palette_delegate_chromeos.cc

Issue 2235063002: Add create note palette action. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@app-runtime-changes
Patch Set: Nit Created 4 years, 4 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/ui/ash/palette_delegate_chromeos.cc
diff --git a/chrome/browser/ui/ash/palette_delegate_chromeos.cc b/chrome/browser/ui/ash/palette_delegate_chromeos.cc
index 0342a30c08b6f48a81a9f6cb3efed1d5a9b91b31..9e74b3cb72b0853c873bedc748170b5dc54cf732 100644
--- a/chrome/browser/ui/ash/palette_delegate_chromeos.cc
+++ b/chrome/browser/ui/ash/palette_delegate_chromeos.cc
@@ -4,10 +4,28 @@
#include "chrome/browser/ui/ash/palette_delegate_chromeos.h"
+#include "chrome/browser/chromeos/note_taking_app_utils.h"
+#include "chrome/browser/profiles/profile_manager.h"
+
namespace chromeos {
+namespace {
+
+Profile* GetProfile() {
+ return ProfileManager::GetActiveUserProfile();
+}
+
+} // namespace
PaletteDelegateChromeOS::PaletteDelegateChromeOS() {}
PaletteDelegateChromeOS::~PaletteDelegateChromeOS() {}
+void PaletteDelegateChromeOS::CreateNote() {
+ chromeos::LaunchNoteTakingAppForNewNote(GetProfile(), base::FilePath());
+}
+
+bool PaletteDelegateChromeOS::HasNoteApp() {
+ return chromeos::IsNoteTakingAppAvailable(GetProfile());
+}
+
} // namespace chromeos
« no previous file with comments | « chrome/browser/ui/ash/palette_delegate_chromeos.h ('k') | ui/gfx/vector_icons/palette_action_create_note.icon » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698