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/autocomplete | |
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/autocomplete')
-rw-r--r-- | chrome/browser/autocomplete/autocomplete_edit.cc | 4 | ||||
-rw-r--r-- | chrome/browser/autocomplete/autocomplete_edit_view_win.cc | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit.cc b/chrome/browser/autocomplete/autocomplete_edit.cc index 218fdd5..46873ba 100644 --- a/chrome/browser/autocomplete/autocomplete_edit.cc +++ b/chrome/browser/autocomplete/autocomplete_edit.cc @@ -261,7 +261,7 @@ void AutocompleteEditModel::SendOpenNotification(size_t selected_line, const TemplateURL* const template_url = template_url_model->GetTemplateURLForKeyword(keyword); if (template_url) { - UserMetrics::RecordAction(L"AcceptedKeyword", profile_); + UserMetrics::RecordAction("AcceptedKeyword", profile_); template_url_model->IncrementUsageCount(template_url); } @@ -279,7 +279,7 @@ void AutocompleteEditModel::AcceptKeyword() { // since the edit contents have disappeared. It // doesn't really matter, but we clear it to be // consistent. - UserMetrics::RecordAction(L"AcceptedKeywordHint", profile_); + UserMetrics::RecordAction("AcceptedKeywordHint", profile_); } void AutocompleteEditModel::ClearKeyword(const std::wstring& visible_text) { diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_win.cc b/chrome/browser/autocomplete/autocomplete_edit_view_win.cc index 00cd12c..d30a8af 100644 --- a/chrome/browser/autocomplete/autocomplete_edit_view_win.cc +++ b/chrome/browser/autocomplete/autocomplete_edit_view_win.cc @@ -2325,10 +2325,10 @@ void AutocompleteEditViewWin::StartDragIfNecessary(const CPoint& point) { drag_utils::SetURLAndDragImage(url, title, favicon, &data); data.SetURL(url, title); supported_modes |= DROPEFFECT_LINK; - UserMetrics::RecordAction(L"Omnibox_DragURL", model_->profile()); + UserMetrics::RecordAction("Omnibox_DragURL", model_->profile()); } else { supported_modes |= DROPEFFECT_MOVE; - UserMetrics::RecordAction(L"Omnibox_DragString", model_->profile()); + UserMetrics::RecordAction("Omnibox_DragString", model_->profile()); } data.SetString(GetSelectedText()); |