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 |