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

Side by Side Diff: chrome/browser/extensions/proxy_overridden_bubble_delegate.cc

Issue 2320013003: [Extensions] Add UMA for the proxy override bubble (Closed)
Patch Set: Mark's 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 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/extensions/proxy_overridden_bubble_delegate.h" 5 #include "chrome/browser/extensions/proxy_overridden_bubble_delegate.h"
6 6
7 #include "base/metrics/histogram_macros.h" 7 #include "base/metrics/histogram_macros.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/browser/extensions/extension_service.h" 9 #include "chrome/browser/extensions/extension_service.h"
10 #include "chrome/browser/extensions/settings_api_helpers.h" 10 #include "chrome/browser/extensions/settings_api_helpers.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 bool ProxyOverriddenBubbleDelegate::ShouldHighlightExtensions() const { 127 bool ProxyOverriddenBubbleDelegate::ShouldHighlightExtensions() const {
128 return true; 128 return true;
129 } 129 }
130 130
131 bool ProxyOverriddenBubbleDelegate::ShouldLimitToEnabledExtensions() const { 131 bool ProxyOverriddenBubbleDelegate::ShouldLimitToEnabledExtensions() const {
132 return true; 132 return true;
133 } 133 }
134 134
135 void ProxyOverriddenBubbleDelegate::LogExtensionCount(size_t count) { 135 void ProxyOverriddenBubbleDelegate::LogExtensionCount(size_t count) {
136 UMA_HISTOGRAM_COUNTS_100("ProxyOverriddenBubble.ExtensionCount", count);
137 } 136 }
138 137
139 void ProxyOverriddenBubbleDelegate::LogAction( 138 void ProxyOverriddenBubbleDelegate::LogAction(
140 ExtensionMessageBubbleController::BubbleAction action) { 139 ExtensionMessageBubbleController::BubbleAction action) {
141 UMA_HISTOGRAM_ENUMERATION("ProxyOverriddenBubble.UserSelection", 140 UMA_HISTOGRAM_ENUMERATION("ProxyOverriddenBubble.UserSelection",
142 action, 141 action,
143 ExtensionMessageBubbleController::ACTION_BOUNDARY); 142 ExtensionMessageBubbleController::ACTION_BOUNDARY);
144 } 143 }
145 144
146 const char* ProxyOverriddenBubbleDelegate::GetKey() { 145 const char* ProxyOverriddenBubbleDelegate::GetKey() {
147 return "ProxyOverriddenBubbleDelegate"; 146 return "ProxyOverriddenBubbleDelegate";
148 } 147 }
149 148
150 } // namespace extensions 149 } // namespace extensions
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