Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Side by Side Diff: content/browser/browser_plugin/browser_plugin_guest.cc

Issue 1320153002: Add new termination status for failed launch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and a nit. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/browser_plugin/browser_plugin_guest.h" 5 #include "content/browser/browser_plugin/browser_plugin_guest.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/pickle.h" 10 #include "base/pickle.h"
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED: 610 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED:
611 RecordAction(base::UserMetricsAction("BrowserPlugin.Guest.Killed")); 611 RecordAction(base::UserMetricsAction("BrowserPlugin.Guest.Killed"));
612 break; 612 break;
613 case base::TERMINATION_STATUS_PROCESS_CRASHED: 613 case base::TERMINATION_STATUS_PROCESS_CRASHED:
614 RecordAction(base::UserMetricsAction("BrowserPlugin.Guest.Crashed")); 614 RecordAction(base::UserMetricsAction("BrowserPlugin.Guest.Crashed"));
615 break; 615 break;
616 case base::TERMINATION_STATUS_ABNORMAL_TERMINATION: 616 case base::TERMINATION_STATUS_ABNORMAL_TERMINATION:
617 RecordAction( 617 RecordAction(
618 base::UserMetricsAction("BrowserPlugin.Guest.AbnormalDeath")); 618 base::UserMetricsAction("BrowserPlugin.Guest.AbnormalDeath"));
619 break; 619 break;
620 case base::TERMINATION_STATUS_LAUNCH_FAILED:
621 RecordAction(base::UserMetricsAction("BrowserPlugin.Guest.LaunchFailed"));
622 break;
620 default: 623 default:
621 break; 624 break;
622 } 625 }
623 } 626 }
624 627
625 // static 628 // static
626 bool BrowserPluginGuest::ShouldForwardToBrowserPluginGuest( 629 bool BrowserPluginGuest::ShouldForwardToBrowserPluginGuest(
627 const IPC::Message& message) { 630 const IPC::Message& message) {
628 return (message.type() != BrowserPluginHostMsg_Attach::ID) && 631 return (message.type() != BrowserPluginHostMsg_Attach::ID) &&
629 (IPC_MESSAGE_CLASS(message) == BrowserPluginMsgStart); 632 (IPC_MESSAGE_CLASS(message) == BrowserPluginMsgStart);
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 void BrowserPluginGuest::OnImeCompositionRangeChanged( 995 void BrowserPluginGuest::OnImeCompositionRangeChanged(
993 const gfx::Range& range, 996 const gfx::Range& range,
994 const std::vector<gfx::Rect>& character_bounds) { 997 const std::vector<gfx::Rect>& character_bounds) {
995 static_cast<RenderWidgetHostViewBase*>( 998 static_cast<RenderWidgetHostViewBase*>(
996 web_contents()->GetRenderWidgetHostView())->ImeCompositionRangeChanged( 999 web_contents()->GetRenderWidgetHostView())->ImeCompositionRangeChanged(
997 range, character_bounds); 1000 range, character_bounds);
998 } 1001 }
999 #endif 1002 #endif
1000 1003
1001 } // namespace content 1004 } // namespace content
OLDNEW
« no previous file with comments | « chromecast/browser/metrics/cast_stability_metrics_provider.cc ('k') | content/browser/child_process_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698