• xhwang@chromium.org's avatar
    Report disabled plugin in CreatePlugin. · ff173642
    xhwang@chromium.org authored
    Currently we only get stats about missing plugins (including unregistered plugin and missing plugin file). It is also interesting to know how many plugin creation failed because it is disabled. User may forget that he/she disabled a particular plugin and he/she doesn't get an info bar in this case, which could cause confusion.
    
    In this CL:
    
    - Rename MissingPluginReporter to PluginUMAReporter.
    - Add ReportPluginDisabled function.
    - Call ReportPluginDisabled function if the plugin is disabled in CreatePlugin.
    - Refactor PluginUMATest to remove duplicate code.
    
    BUG=226107
    TEST=Unittests pass.
    
    Review URL: https://chromiumcodereview.appspot.com/13414007
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192652 0039d316-1c4b-4281-b951-d872f2087c98
    ff173642
plugin_uma.h 2.4 KB