| 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 89ca5d0216c2f284dc659e3ce4121269563450e2..7ad6cef9ed00c6bc5aa4e00faa622be3516be094 100644
|
| --- a/chrome/browser/ui/ash/palette_delegate_chromeos.cc
|
| +++ b/chrome/browser/ui/ash/palette_delegate_chromeos.cc
|
| @@ -8,13 +8,30 @@
|
| #include "ash/screenshot_delegate.h"
|
| #include "ash/shell.h"
|
| #include "ash/utility/screenshot_controller.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());
|
| +}
|
| +
|
| void PaletteDelegateChromeOS::TakeScreenshot() {
|
| auto screenshot_controller =
|
| ash::Shell::GetInstance()->screenshot_controller();
|
|
|