summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tabs
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-17 19:04:12 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-17 19:04:12 +0000
commitafe3a16739185a648a21a34e07f3cdb5f1a23c2f (patch)
tree4c82ce550948ed3d67a7a46a1aa066c9080412fb /chrome/browser/tabs
parentd699e3a52d6431ea5d2a691f77866ac8ec7ba350 (diff)
downloadchromium_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/tabs')
-rw-r--r--chrome/browser/tabs/tab_strip_model.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/chrome/browser/tabs/tab_strip_model.cc b/chrome/browser/tabs/tab_strip_model.cc
index 15c22f4..b44f01b 100644
--- a/chrome/browser/tabs/tab_strip_model.cc
+++ b/chrome/browser/tabs/tab_strip_model.cc
@@ -524,23 +524,23 @@ void TabStripModel::ExecuteContextMenuCommand(
DCHECK(command_id > CommandFirst && command_id < CommandLast);
switch (command_id) {
case CommandNewTab:
- UserMetrics::RecordAction(L"TabContextMenu_NewTab", profile_);
+ UserMetrics::RecordAction("TabContextMenu_NewTab", profile_);
delegate()->AddBlankTabAt(context_index + 1, true);
break;
case CommandReload:
- UserMetrics::RecordAction(L"TabContextMenu_Reload", profile_);
+ UserMetrics::RecordAction("TabContextMenu_Reload", profile_);
GetContentsAt(context_index)->controller().Reload(true);
break;
case CommandDuplicate:
- UserMetrics::RecordAction(L"TabContextMenu_Duplicate", profile_);
+ UserMetrics::RecordAction("TabContextMenu_Duplicate", profile_);
delegate_->DuplicateContentsAt(context_index);
break;
case CommandCloseTab:
- UserMetrics::RecordAction(L"TabContextMenu_CloseTab", profile_);
+ UserMetrics::RecordAction("TabContextMenu_CloseTab", profile_);
CloseTabContentsAt(context_index);
break;
case CommandCloseOtherTabs: {
- UserMetrics::RecordAction(L"TabContextMenu_CloseOtherTabs", profile_);
+ UserMetrics::RecordAction("TabContextMenu_CloseOtherTabs", profile_);
TabContents* contents = GetTabContentsAt(context_index);
std::vector<int> closing_tabs;
for (int i = count() - 1; i >= 0; --i) {
@@ -551,7 +551,7 @@ void TabStripModel::ExecuteContextMenuCommand(
break;
}
case CommandCloseTabsToRight: {
- UserMetrics::RecordAction(L"TabContextMenu_CloseTabsToRight", profile_);
+ UserMetrics::RecordAction("TabContextMenu_CloseTabsToRight", profile_);
std::vector<int> closing_tabs;
for (int i = count() - 1; i > context_index; --i) {
closing_tabs.push_back(i);
@@ -560,18 +560,18 @@ void TabStripModel::ExecuteContextMenuCommand(
break;
}
case CommandCloseTabsOpenedBy: {
- UserMetrics::RecordAction(L"TabContextMenu_CloseTabsOpenedBy", profile_);
+ UserMetrics::RecordAction("TabContextMenu_CloseTabsOpenedBy", profile_);
std::vector<int> closing_tabs = GetIndexesOpenedBy(context_index);
InternalCloseTabs(closing_tabs, true);
break;
}
case CommandRestoreTab: {
- UserMetrics::RecordAction(L"TabContextMenu_RestoreTab", profile_);
+ UserMetrics::RecordAction("TabContextMenu_RestoreTab", profile_);
delegate_->RestoreTab();
break;
}
case CommandTogglePinned: {
- UserMetrics::RecordAction(L"TabContextMenu_TogglePinned", profile_);
+ UserMetrics::RecordAction("TabContextMenu_TogglePinned", profile_);
SelectTabContentsAt(context_index, true);
SetTabPinned(context_index, !IsTabPinned(context_index));
@@ -579,7 +579,7 @@ void TabStripModel::ExecuteContextMenuCommand(
}
case CommandBookmarkAllTabs: {
- UserMetrics::RecordAction(L"TabContextMenu_BookmarkAllTabs", profile_);
+ UserMetrics::RecordAction("TabContextMenu_BookmarkAllTabs", profile_);
delegate_->BookmarkAllTabs();
break;