Revert 273817 "Record RenderViewContextMenu.Used histogram befor..."

> Record RenderViewContextMenu.Used histogram before calling observers.
> 
> BUG=378933
> 
> Review URL: https://codereview.chromium.org/306103002

TBR=vitalybuka@chromium.org

Review URL: https://codereview.chromium.org/301233006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274146 0039d316-1c4b-4281-b951-d872f2087c98
parent a71f0d6c
...@@ -1416,8 +1416,6 @@ bool RenderViewContextMenu::IsCommandIdChecked(int id) const { ...@@ -1416,8 +1416,6 @@ bool RenderViewContextMenu::IsCommandIdChecked(int id) const {
void RenderViewContextMenu::ExecuteCommand(int id, int event_flags) { void RenderViewContextMenu::ExecuteCommand(int id, int event_flags) {
command_executed_ = true; command_executed_ = true;
RecordUsedItem(id);
// If this command is is added by one of our observers, we dispatch it to the // If this command is is added by one of our observers, we dispatch it to the
// observer. // observer.
ObserverListBase<RenderViewContextMenuObserver>::Iterator it(observers_); ObserverListBase<RenderViewContextMenuObserver>::Iterator it(observers_);
...@@ -1427,6 +1425,8 @@ void RenderViewContextMenu::ExecuteCommand(int id, int event_flags) { ...@@ -1427,6 +1425,8 @@ void RenderViewContextMenu::ExecuteCommand(int id, int event_flags) {
return observer->ExecuteCommand(id); return observer->ExecuteCommand(id);
} }
RecordUsedItem(id);
RenderFrameHost* render_frame_host = RenderFrameHost* render_frame_host =
RenderFrameHost::FromID(render_process_id_, render_frame_id_); RenderFrameHost::FromID(render_process_id_, render_frame_id_);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment