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

Side by Side Diff: chrome/browser/extensions/activity_log/uma_policy.cc

Issue 299493002: Include likely ad injection for metrics gathering in ActiveScriptController (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/extensions/activity_log/uma_policy.h" 5 #include "chrome/browser/extensions/activity_log/uma_policy.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/extensions/active_script_controller.h" 10 #include "chrome/browser/extensions/active_script_controller.h"
(...skipping 27 matching lines...) Expand all
38 const int kCreatedInput = 1 << UmaPolicy::CREATED_INPUT; 38 const int kCreatedInput = 1 << UmaPolicy::CREATED_INPUT;
39 const int kCreatedEmbed = 1 << UmaPolicy::CREATED_EMBED; 39 const int kCreatedEmbed = 1 << UmaPolicy::CREATED_EMBED;
40 const int kCreatedObject = 1 << UmaPolicy::CREATED_OBJECT; 40 const int kCreatedObject = 1 << UmaPolicy::CREATED_OBJECT;
41 const int kAdInjected = 1 << UmaPolicy::AD_INJECTED; 41 const int kAdInjected = 1 << UmaPolicy::AD_INJECTED;
42 const int kAdRemoved = 1 << UmaPolicy::AD_REMOVED; 42 const int kAdRemoved = 1 << UmaPolicy::AD_REMOVED;
43 const int kAdReplaced = 1 << UmaPolicy::AD_REPLACED; 43 const int kAdReplaced = 1 << UmaPolicy::AD_REPLACED;
44 const int kAdLikelyInjected = 1 << UmaPolicy::AD_LIKELY_INJECTED; 44 const int kAdLikelyInjected = 1 << UmaPolicy::AD_LIKELY_INJECTED;
45 const int kAdLikelyReplaced = 1 << UmaPolicy::AD_LIKELY_REPLACED; 45 const int kAdLikelyReplaced = 1 << UmaPolicy::AD_LIKELY_REPLACED;
46 46
47 // A mask of all the ad injection flags. 47 // A mask of all the ad injection flags.
48 const int kAnyAdActivity = kAdInjected | kAdRemoved | kAdReplaced; 48 const int kAnyAdActivity = kAdInjected |
49 kAdRemoved |
50 kAdReplaced |
51 kAdLikelyInjected |
52 kAdLikelyReplaced;
49 53
50 } // namespace 54 } // namespace
51 55
52 // Class constants, also used in testing. -------------------------------------- 56 // Class constants, also used in testing. --------------------------------------
53 57
54 const char UmaPolicy::kNumberOfTabs[] = "num_tabs"; 58 const char UmaPolicy::kNumberOfTabs[] = "num_tabs";
55 const size_t UmaPolicy::kMaxTabsTracked = 50; 59 const size_t UmaPolicy::kMaxTabsTracked = 50;
56 60
57 // Setup and shutdown. --------------------------------------------------------- 61 // Setup and shutdown. ---------------------------------------------------------
58 62
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 return "AdLikelyReplaced"; 438 return "AdLikelyReplaced";
435 case NONE: 439 case NONE:
436 case MAX_STATUS: 440 case MAX_STATUS:
437 default: 441 default:
438 NOTREACHED(); 442 NOTREACHED();
439 return ""; 443 return "";
440 } 444 }
441 } 445 }
442 446
443 } // namespace extensions 447 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698