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

Side by Side Diff: chrome/browser/plugins/plugin_metadata.cc

Issue 1130793006: Add UMA actions and histogram for the NPAPI InfoBar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: code review comments. add two more plugins. Created 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/plugins/plugin_metadata.h" 5 #include "chrome/browser/plugins/plugin_metadata.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
11 #include "content/public/common/webplugininfo.h" 11 #include "content/public/common/webplugininfo.h"
12 12
13 // static 13 // static
14 const char PluginMetadata::kAdobeReaderGroupName[] = "Adobe Reader"; 14 const char PluginMetadata::kAdobeReaderGroupName[] = "Adobe Reader";
15 const char PluginMetadata::kJavaGroupName[] = "Java(TM)"; 15 const char PluginMetadata::kJavaGroupName[] = "Java(TM)";
16 const char PluginMetadata::kQuickTimeGroupName[] = "QuickTime Player"; 16 const char PluginMetadata::kQuickTimeGroupName[] = "QuickTime Player";
17 const char PluginMetadata::kShockwaveGroupName[] = "Adobe Shockwave Player"; 17 const char PluginMetadata::kShockwaveGroupName[] = "Adobe Shockwave Player";
18 const char PluginMetadata::kRealPlayerGroupName[] = "RealPlayer"; 18 const char PluginMetadata::kRealPlayerGroupName[] = "RealPlayer";
19 const char PluginMetadata::kSilverlightGroupName[] = "Silverlight"; 19 const char PluginMetadata::kSilverlightGroupName[] = "Silverlight";
20 const char PluginMetadata::kWindowsMediaPlayerGroupName[] = 20 const char PluginMetadata::kWindowsMediaPlayerGroupName[] =
21 "Windows Media Player"; 21 "Windows Media Player";
22 const char PluginMetadata::kGoogleTalkGroupName[] = "Google Talk";
23 const char PluginMetadata::kGoogleEarthGroupName[] = "Google Earth";
22 24
23 PluginMetadata::PluginMetadata(const std::string& identifier, 25 PluginMetadata::PluginMetadata(const std::string& identifier,
24 const base::string16& name, 26 const base::string16& name,
25 bool url_for_display, 27 bool url_for_display,
26 const GURL& plugin_url, 28 const GURL& plugin_url,
27 const GURL& help_url, 29 const GURL& help_url,
28 const base::string16& group_name_matcher, 30 const base::string16& group_name_matcher,
29 const std::string& language) 31 const std::string& language)
30 : identifier_(identifier), 32 : identifier_(identifier),
31 name_(name), 33 name_(name),
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 PluginMetadata* copy = new PluginMetadata(identifier_, 125 PluginMetadata* copy = new PluginMetadata(identifier_,
124 name_, 126 name_,
125 url_for_display_, 127 url_for_display_,
126 plugin_url_, 128 plugin_url_,
127 help_url_, 129 help_url_,
128 group_name_matcher_, 130 group_name_matcher_,
129 language_); 131 language_);
130 copy->versions_ = versions_; 132 copy->versions_ = versions_;
131 return make_scoped_ptr(copy); 133 return make_scoped_ptr(copy);
132 } 134 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698