diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-25 13:19:08 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-25 13:19:08 +0000 |
commit | 13ffb98bc729794380228ebdc09b18687d2d1d74 (patch) | |
tree | 78ee3b17e7c2a6273775ee6146b203e8dd5c72fe /chrome | |
parent | cc29444facb6d27eab2b595543c28a56e0990533 (diff) | |
download | chromium_src-13ffb98bc729794380228ebdc09b18687d2d1d74.zip chromium_src-13ffb98bc729794380228ebdc09b18687d2d1d74.tar.gz chromium_src-13ffb98bc729794380228ebdc09b18687d2d1d74.tar.bz2 |
importer: Add UMA logging to Firefox warning dialog.
BUG=51100
TEST=None
R=avi@chromium.org,mirandac@chromium.org
Review URL: http://codereview.chromium.org/6676138
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79393 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
4 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/ui/cocoa/importer/import_lock_dialog_cocoa.mm b/chrome/browser/ui/cocoa/importer/import_lock_dialog_cocoa.mm index 1a3697d..aadd90f 100644 --- a/chrome/browser/ui/cocoa/importer/import_lock_dialog_cocoa.mm +++ b/chrome/browser/ui/cocoa/importer/import_lock_dialog_cocoa.mm @@ -8,6 +8,7 @@ #include "base/scoped_nsobject.h" #include "chrome/browser/importer/importer_host.h" #include "chrome/browser/importer/importer_lock_dialog.h" +#include "chrome/browser/metrics/user_metrics.h" #include "grit/chromium_strings.h" #include "grit/generated_resources.h" #include "ui/base/l10n/l10n_util_mac.h" @@ -33,6 +34,7 @@ void ShowImportLockDialog(gfx::NativeWindow parent, MessageLoop::current()->PostTask(FROM_HERE, NewRunnableMethod( importer_host, &ImporterHost::OnImportLockDialogEnd, false)); } + UserMetrics::RecordAction(UserMetricsAction("ImportLockDialogCocoa_Shown")); } } // namespace importer diff --git a/chrome/browser/ui/gtk/importer/import_lock_dialog_gtk.cc b/chrome/browser/ui/gtk/importer/import_lock_dialog_gtk.cc index b47f013..22997bf 100644 --- a/chrome/browser/ui/gtk/importer/import_lock_dialog_gtk.cc +++ b/chrome/browser/ui/gtk/importer/import_lock_dialog_gtk.cc @@ -9,6 +9,7 @@ #include "base/message_loop.h" #include "chrome/browser/importer/importer_host.h" #include "chrome/browser/importer/importer_lock_dialog.h" +#include "chrome/browser/metrics/user_metrics.h" #include "chrome/browser/ui/gtk/gtk_util.h" #include "grit/chromium_strings.h" #include "grit/generated_resources.h" @@ -19,6 +20,7 @@ namespace importer { void ShowImportLockDialog(gfx::NativeWindow parent, ImporterHost* importer_host) { ImportLockDialogGtk::Show(parent, importer_host); + UserMetrics::RecordAction(UserMetricsAction("ImportLockDialogGtk_Shown")); } } // namespace importer diff --git a/chrome/browser/ui/views/importer/import_lock_dialog_view.cc b/chrome/browser/ui/views/importer/import_lock_dialog_view.cc index c2da72d..5a28b6f9 100644 --- a/chrome/browser/ui/views/importer/import_lock_dialog_view.cc +++ b/chrome/browser/ui/views/importer/import_lock_dialog_view.cc @@ -8,6 +8,7 @@ #include "base/utf_string_conversions.h" #include "chrome/browser/importer/importer_host.h" #include "chrome/browser/importer/importer_lock_dialog.h" +#include "chrome/browser/metrics/user_metrics.h" #include "grit/chromium_strings.h" #include "grit/generated_resources.h" #include "grit/locale_settings.h" @@ -25,6 +26,7 @@ namespace importer { void ShowImportLockDialog(gfx::NativeWindow parent, ImporterHost* importer_host) { ImportLockDialogView::Show(parent, importer_host); + UserMetrics::RecordAction(UserMetricsAction("ImportLockDialogView_Shown")); } } // namespace importer diff --git a/chrome/tools/chromeactions.txt b/chrome/tools/chromeactions.txt index 966904f..d8b894e 100644 --- a/chrome/tools/chromeactions.txt +++ b/chrome/tools/chromeactions.txt @@ -12,6 +12,7 @@ 0x79571e31c2dc4d3c AboutFlags_experimental-location-features 0x307b8a127f85947e AboutFlags_expose-for-tabs 0x2c97f94b6aca4a22 AboutFlags_extension-apis +0x3a73624e6d06ac2e AboutFlags_focus-existing-tab-on-open 0x66a2e456dfe783d3 AboutFlags_gpu-canvas-2d 0x6cb0582a680ffec6 AboutFlags_instant-autocomplete-immediately 0x67b7031bb00a6917 AboutFlags_instant-type @@ -302,6 +303,9 @@ 0xca7db0b9cda2eecd History_DragThumbnail 0xdf8379d1cab60cbf History_Search 0x8cf04a9734132302 Home +0x3f8725913f9606e0 ImportLockDialogCocoa_Shown +0x10209a50a49ea88f ImportLockDialogGtk_Shown +0x03154e02d9a7d1b0 ImportLockDialogView_Shown 0x2679e82f33d66fc0 Import_ShowDlg 0x497470e76a40fc53 Indent 0xddbd530e88f0baad InputMethodOptions_Open_chewing |