From afe3a16739185a648a21a34e07f3cdb5f1a23c2f Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Tue, 17 Nov 2009 19:04:12 +0000 Subject: 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 --- chrome/browser/views/bookmark_bubble_view.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'chrome/browser/views/bookmark_bubble_view.cc') diff --git a/chrome/browser/views/bookmark_bubble_view.cc b/chrome/browser/views/bookmark_bubble_view.cc index 9c4465b..425d1ce5 100644 --- a/chrome/browser/views/bookmark_bubble_view.cc +++ b/chrome/browser/views/bookmark_bubble_view.cc @@ -331,7 +331,7 @@ void BookmarkBubbleView::ButtonPressed( void BookmarkBubbleView::LinkActivated(Link* source, int event_flags) { DCHECK(source == remove_link_); - UserMetrics::RecordAction(L"BookmarkBubble_Unstar", profile_); + UserMetrics::RecordAction("BookmarkBubble_Unstar", profile_); // Set this so we remove the bookmark after the window closes. remove_bookmark_ = true; @@ -344,7 +344,7 @@ void BookmarkBubbleView::ItemChanged(Combobox* combobox, int prev_index, int new_index) { if (new_index + 1 == parent_model_.GetItemCount()) { - UserMetrics::RecordAction(L"BookmarkBubble_EditFromCombobox", profile_); + UserMetrics::RecordAction("BookmarkBubble_EditFromCombobox", profile_); ShowEditor(); return; @@ -381,7 +381,7 @@ void BookmarkBubbleView::Close() { void BookmarkBubbleView::HandleButtonPressed(views::Button* sender) { if (sender == edit_button_) { - UserMetrics::RecordAction(L"BookmarkBubble_Edit", profile_); + UserMetrics::RecordAction("BookmarkBubble_Edit", profile_); ShowEditor(); } else { DCHECK(sender == close_button_); @@ -436,7 +436,7 @@ void BookmarkBubbleView::ApplyEdits() { const std::wstring new_title = UTF16ToWide(title_tf_->text()); if (new_title != node->GetTitle()) { model->SetTitle(node, new_title); - UserMetrics::RecordAction(L"BookmarkBubble_ChangeTitleInBubble", + UserMetrics::RecordAction("BookmarkBubble_ChangeTitleInBubble", profile_); } // Last index means 'Choose another folder...' @@ -445,7 +445,7 @@ void BookmarkBubbleView::ApplyEdits() { const BookmarkNode* new_parent = parent_model_.GetNodeAt(parent_combobox_->selected_item()); if (new_parent != node->GetParent()) { - UserMetrics::RecordAction(L"BookmarkBubble_ChangeParent", profile_); + UserMetrics::RecordAction("BookmarkBubble_ChangeParent", profile_); model->Move(node, new_parent, new_parent->GetChildCount()); } } -- cgit v1.1