| Index: chrome/browser/ui/views/first_run_bubble.cc
|
| diff --git a/chrome/browser/ui/views/first_run_bubble.cc b/chrome/browser/ui/views/first_run_bubble.cc
|
| index 912b6408ad1aa7ff0f26f18808733a726273b9e8..749e6d3da6e6ef778cd4c74d810ed399f2cb6f55 100644
|
| --- a/chrome/browser/ui/views/first_run_bubble.cc
|
| +++ b/chrome/browser/ui/views/first_run_bubble.cc
|
| @@ -5,6 +5,7 @@
|
| #include "chrome/browser/ui/views/first_run_bubble.h"
|
|
|
| #include "base/utf_string_conversions.h"
|
| +#include "chrome/browser/first_run/first_run.h"
|
| #include "chrome/browser/search_engines/util.h"
|
| #include "chrome/browser/ui/browser_list.h"
|
| #include "chrome/browser/ui/views/window.h"
|
| @@ -31,6 +32,8 @@ namespace first_run {
|
| // static
|
| FirstRunBubble* FirstRunBubble::ShowBubble(Profile* profile,
|
| views::View* anchor_view) {
|
| + first_run::LogFirstRunMetric(first_run::FIRST_RUN_BUBBLE_SHOWN);
|
| +
|
| FirstRunBubble* delegate = new FirstRunBubble(profile, anchor_view);
|
| browser::CreateViewsBubble(delegate);
|
| delegate->StartFade(true);
|
| @@ -90,6 +93,8 @@ FirstRunBubble::~FirstRunBubble() {
|
| }
|
|
|
| void FirstRunBubble::LinkClicked(views::Link* source, int event_flags) {
|
| + first_run::LogFirstRunMetric(first_run::FIRST_RUN_BUBBLE_CHANGE_INVOKED);
|
| +
|
| // Get |profile_|'s browser before closing the bubble, which deletes |this|.
|
| Browser* browser = BrowserList::GetLastActiveWithProfile(profile_);
|
| GetWidget()->Close();
|
|
|