| Index: chrome/browser/ui/tab_contents/tab_contents_wrapper.cc
|
| diff --git a/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc b/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc
|
| index 438c02159ea10aeb831ee54b3e54deffdcf85c59..2feae9a569756027cec25a0d9c9d7a5c12393222 100644
|
| --- a/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc
|
| +++ b/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc
|
| @@ -61,6 +61,7 @@
|
| #include "content/browser/tab_contents/navigation_details.h"
|
| #include "content/browser/tab_contents/tab_contents.h"
|
| #include "content/browser/tab_contents/tab_contents_view.h"
|
| +#include "content/browser/user_metrics.h"
|
| #include "content/common/notification_service.h"
|
| #include "content/common/view_messages.h"
|
| #include "grit/generated_resources.h"
|
| @@ -581,6 +582,8 @@ void TabContentsWrapper::OnRegisterProtocolHandler(const std::string& protocol,
|
|
|
| if (!handler.IsEmpty() &&
|
| registry->CanSchemeBeOverridden(handler.protocol())) {
|
| + UserMetrics::RecordAction(UserMetricsAction(
|
| + "RegisterProtocolHandler.InfoBar_Shown"));
|
| AddInfoBar(new RegisterProtocolHandlerInfoBarDelegate(tab_contents(),
|
| registry,
|
| handler));
|
|
|