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

Unified Diff: chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.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/ui/views/frame/browser_non_client_frame_view_ash.cc
diff --git a/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc b/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc
index 18e7f6527861485cc8371c2a5c273c90eb0b124e..45e73d9630f9224559fd5f2573ee5cc4bff86d21 100644
--- a/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc
+++ b/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc
@@ -56,6 +56,10 @@
#include "ui/views/widget/widget.h"
#include "ui/views/widget/widget_delegate.h"
+#if defined(OS_CHROMEOS)
+#include "ash/shared/app_types.h"
+#endif
+
namespace {
// Space between right edge of tabstrip and maximize button.
@@ -137,6 +141,16 @@ void BrowserNonClientFrameViewAsh::Init() {
header_painter->Init(frame(), browser_view(), this, window_icon_,
caption_button_container_);
}
+
+#if defined(OS_CHROMEOS)
+ if (browser_view()->browser()->is_app()) {
+ frame()->GetNativeWindow()->SetProperty(
+ aura::client::kAppType, static_cast<int>(ash::AppType::CHROME_APP));
+ } else {
+ frame()->GetNativeWindow()->SetProperty(
+ aura::client::kAppType, static_cast<int>(ash::AppType::BROWSER));
+ }
+#endif
}
///////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698