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

Unified Diff: chrome/browser/chromeos/note_taking_helper.cc

Issue 2644713002: cros: Use runtime stylus detection for ash palette. (Closed)
Patch Set: Explicitly initialize properties to false Created 3 years, 10 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/chromeos/note_taking_helper.cc
diff --git a/chrome/browser/chromeos/note_taking_helper.cc b/chrome/browser/chromeos/note_taking_helper.cc
index d39ca6cf5f6406d2e048eb4384144e268db61a02..55d951a43776ccfbd33be525449dbab250445dd9 100644
--- a/chrome/browser/chromeos/note_taking_helper.cc
+++ b/chrome/browser/chromeos/note_taking_helper.cc
@@ -151,7 +151,7 @@ void NoteTakingHelper::SetPreferredApp(Profile* profile,
bool NoteTakingHelper::IsAppAvailable(Profile* profile) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
DCHECK(profile);
- return ash::IsPaletteFeatureEnabled() && !GetAvailableApps(profile).empty();
+ return ash::HasStylusInput() && !GetAvailableApps(profile).empty();
}
void NoteTakingHelper::LaunchAppForNewNote(Profile* profile,

Powered by Google App Engine
This is Rietveld 408576698