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

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

Issue 2331093002: UMA stats for stylus usage (Closed)
Patch Set: nit and rebase Created 4 years, 3 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_app_utils.cc
diff --git a/chrome/browser/chromeos/note_taking_app_utils.cc b/chrome/browser/chromeos/note_taking_app_utils.cc
index 7f12a8da4081447fc6d397c1fde54acc820fe55b..d68cd41c0c282ea1a9eb41be3cb52fff133c2e2c 100644
--- a/chrome/browser/chromeos/note_taking_app_utils.cc
+++ b/chrome/browser/chromeos/note_taking_app_utils.cc
@@ -15,6 +15,7 @@
#include "base/strings/string_split.h"
#include "chrome/browser/profiles/profile.h"
#include "chromeos/chromeos_switches.h"
+#include "extensions/browser/app_window/app_window.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/common/api/app_runtime.h"
#include "extensions/common/extension.h"
@@ -86,4 +87,11 @@ void LaunchNoteTakingAppForNewNote(Profile* profile,
apps::LaunchPlatformAppWithAction(profile, app, std::move(action_data), path);
}
+bool IsNoteTakingAppWindow(extensions::AppWindow* app_window,
+ Profile* profile) {
+ DCHECK(app_window && profile);
+ const extensions::Extension* app = GetApp(profile);
+ return app && (app->id() == app_window->extension_id());
+}
+
} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/note_taking_app_utils.h ('k') | chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698