diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-17 19:04:12 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-17 19:04:12 +0000 |
commit | afe3a16739185a648a21a34e07f3cdb5f1a23c2f (patch) | |
tree | 4c82ce550948ed3d67a7a46a1aa066c9080412fb /chrome/browser/gtk/bookmark_bubble_gtk.cc | |
parent | d699e3a52d6431ea5d2a691f77866ac8ec7ba350 (diff) | |
download | chromium_src-afe3a16739185a648a21a34e07f3cdb5f1a23c2f.zip chromium_src-afe3a16739185a648a21a34e07f3cdb5f1a23c2f.tar.gz chromium_src-afe3a16739185a648a21a34e07f3cdb5f1a23c2f.tar.bz2 |
Use plain strings instead of wstrings for UMA actions
git grep 'RecordAction(L' | xargs sed -i -e s/RecordAction(L/RecordAction(/
This cuts more than 10k off my binary. Which is nothing compared
to the size of the binary, but that's a whole lot of zero bytes!
This is less code this way anyway.
Review URL: http://codereview.chromium.org/399026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32194 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/bookmark_bubble_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/bookmark_bubble_gtk.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/gtk/bookmark_bubble_gtk.cc b/chrome/browser/gtk/bookmark_bubble_gtk.cc index 0e82f2d..5b32c7f 100644 --- a/chrome/browser/gtk/bookmark_bubble_gtk.cc +++ b/chrome/browser/gtk/bookmark_bubble_gtk.cc @@ -281,7 +281,7 @@ void BookmarkBubbleGtk::HandleNameActivate() { void BookmarkBubbleGtk::HandleFolderChanged() { size_t cur_folder = gtk_combo_box_get_active(GTK_COMBO_BOX(folder_combo_)); if (cur_folder == folder_nodes_.size()) { - UserMetrics::RecordAction(L"BookmarkBubble_EditFromCombobox", profile_); + UserMetrics::RecordAction("BookmarkBubble_EditFromCombobox", profile_); // GTK doesn't handle having the combo box destroyed from the changed // signal. Since showing the editor also closes the bubble, delay this // so that GTK can unwind. Specifically gtk_menu_shell_button_release @@ -303,7 +303,7 @@ void BookmarkBubbleGtk::HandleFolderPopupShown() { } void BookmarkBubbleGtk::HandleEditButton() { - UserMetrics::RecordAction(L"BookmarkBubble_Edit", profile_); + UserMetrics::RecordAction("BookmarkBubble_Edit", profile_); ShowEditor(); } @@ -312,7 +312,7 @@ void BookmarkBubbleGtk::HandleCloseButton() { } void BookmarkBubbleGtk::HandleRemoveButton() { - UserMetrics::RecordAction(L"BookmarkBubble_Unstar", profile_); + UserMetrics::RecordAction("BookmarkBubble_Unstar", profile_); apply_edits_ = false; remove_bookmark_ = true; @@ -333,7 +333,7 @@ void BookmarkBubbleGtk::ApplyEdits() { if (new_title != node->GetTitle()) { model->SetTitle(node, new_title); - UserMetrics::RecordAction(L"BookmarkBubble_ChangeTitleInBubble", + UserMetrics::RecordAction("BookmarkBubble_ChangeTitleInBubble", profile_); } @@ -343,7 +343,7 @@ void BookmarkBubbleGtk::ApplyEdits() { if (cur_folder < folder_nodes_.size()) { const BookmarkNode* new_parent = folder_nodes_[cur_folder]; if (new_parent != node->GetParent()) { - UserMetrics::RecordAction(L"BookmarkBubble_ChangeParent", profile_); + UserMetrics::RecordAction("BookmarkBubble_ChangeParent", profile_); model->Move(node, new_parent, new_parent->GetChildCount()); } } |