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

Side by Side Diff: chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc

Issue 602183003: Do not consider WMII as supporting _NET_ACTIVE_WINDOW (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h" 5 #include "chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 UMA_LINUX_WINDOW_MANAGER_OPENBOX, 64 UMA_LINUX_WINDOW_MANAGER_OPENBOX,
65 UMA_LINUX_WINDOW_MANAGER_XFWM4, 65 UMA_LINUX_WINDOW_MANAGER_XFWM4,
66 UMA_LINUX_WINDOW_MANAGER_AWESOME, 66 UMA_LINUX_WINDOW_MANAGER_AWESOME,
67 UMA_LINUX_WINDOW_MANAGER_I3, 67 UMA_LINUX_WINDOW_MANAGER_I3,
68 UMA_LINUX_WINDOW_MANAGER_ION3, 68 UMA_LINUX_WINDOW_MANAGER_ION3,
69 UMA_LINUX_WINDOW_MANAGER_MATCHBOX, 69 UMA_LINUX_WINDOW_MANAGER_MATCHBOX,
70 UMA_LINUX_WINDOW_MANAGER_NOTION, 70 UMA_LINUX_WINDOW_MANAGER_NOTION,
71 UMA_LINUX_WINDOW_MANAGER_QTILE, 71 UMA_LINUX_WINDOW_MANAGER_QTILE,
72 UMA_LINUX_WINDOW_MANAGER_RATPOISON, 72 UMA_LINUX_WINDOW_MANAGER_RATPOISON,
73 UMA_LINUX_WINDOW_MANAGER_STUMPWM, 73 UMA_LINUX_WINDOW_MANAGER_STUMPWM,
74 UMA_LINUX_WINDOW_MANAGER_WMII,
74 // NOTE: Append new window managers to the list above this line (i.e. don't 75 // NOTE: Append new window managers to the list above this line (i.e. don't
75 // renumber) and update LinuxWindowManagerName in 76 // renumber) and update LinuxWindowManagerName in
76 // tools/metrics/histograms/histograms.xml accordingly. 77 // tools/metrics/histograms/histograms.xml accordingly.
77 UMA_LINUX_WINDOW_MANAGER_COUNT 78 UMA_LINUX_WINDOW_MANAGER_COUNT
78 }; 79 };
79 80
80 enum UMATouchEventsState { 81 enum UMATouchEventsState {
81 UMA_TOUCH_EVENTS_ENABLED, 82 UMA_TOUCH_EVENTS_ENABLED,
82 UMA_TOUCH_EVENTS_AUTO_ENABLED, 83 UMA_TOUCH_EVENTS_AUTO_ENABLED,
83 UMA_TOUCH_EVENTS_AUTO_DISABLED, 84 UMA_TOUCH_EVENTS_AUTO_DISABLED,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 case ui::WM_NOTION: 175 case ui::WM_NOTION:
175 return UMA_LINUX_WINDOW_MANAGER_NOTION; 176 return UMA_LINUX_WINDOW_MANAGER_NOTION;
176 case ui::WM_OPENBOX: 177 case ui::WM_OPENBOX:
177 return UMA_LINUX_WINDOW_MANAGER_OPENBOX; 178 return UMA_LINUX_WINDOW_MANAGER_OPENBOX;
178 case ui::WM_QTILE: 179 case ui::WM_QTILE:
179 return UMA_LINUX_WINDOW_MANAGER_QTILE; 180 return UMA_LINUX_WINDOW_MANAGER_QTILE;
180 case ui::WM_RATPOISON: 181 case ui::WM_RATPOISON:
181 return UMA_LINUX_WINDOW_MANAGER_RATPOISON; 182 return UMA_LINUX_WINDOW_MANAGER_RATPOISON;
182 case ui::WM_STUMPWM: 183 case ui::WM_STUMPWM:
183 return UMA_LINUX_WINDOW_MANAGER_STUMPWM; 184 return UMA_LINUX_WINDOW_MANAGER_STUMPWM;
185 case ui::WM_WMII:
186 return UMA_LINUX_WINDOW_MANAGER_WMII;
184 case ui::WM_XFWM4: 187 case ui::WM_XFWM4:
185 return UMA_LINUX_WINDOW_MANAGER_XFWM4; 188 return UMA_LINUX_WINDOW_MANAGER_XFWM4;
186 } 189 }
187 return UMA_LINUX_WINDOW_MANAGER_OTHER; 190 return UMA_LINUX_WINDOW_MANAGER_OTHER;
188 } 191 }
189 #endif 192 #endif
190 193
191 void RecordTouchEventState() { 194 void RecordTouchEventState() {
192 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 195 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
193 const std::string touch_enabled_switch = 196 const std::string touch_enabled_switch =
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 base::TimeDelta::FromSeconds(kStartupMetricsGatheringDelaySeconds)); 250 base::TimeDelta::FromSeconds(kStartupMetricsGatheringDelaySeconds));
248 } 251 }
249 252
250 namespace chrome { 253 namespace chrome {
251 254
252 void AddMetricsExtraParts(ChromeBrowserMainParts* main_parts) { 255 void AddMetricsExtraParts(ChromeBrowserMainParts* main_parts) {
253 main_parts->AddParts(new ChromeBrowserMainExtraPartsMetrics()); 256 main_parts->AddParts(new ChromeBrowserMainExtraPartsMetrics());
254 } 257 }
255 258
256 } // namespace chrome 259 } // namespace chrome
OLDNEW
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698