use MSG_ROUTING_NONE to initialize routing_id_ rather than 0

This commit is contained in:
Andy Dill 2016-08-12 13:03:31 -07:00
parent a3bd54a41a
commit 704561b255

View file

@ -42,7 +42,7 @@ RemoteObjectFreer::RemoteObjectFreer(
v8::Isolate* isolate, v8::Local<v8::Object> target, int object_id) v8::Isolate* isolate, v8::Local<v8::Object> target, int object_id)
: ObjectLifeMonitor(isolate, target), : ObjectLifeMonitor(isolate, target),
object_id_(object_id), object_id_(object_id),
routing_id_(0) { routing_id_(MSG_ROUTING_NONE) {
content::RenderView* render_view = GetCurrentRenderView(); content::RenderView* render_view = GetCurrentRenderView();
if (render_view) { if (render_view) {
routing_id_ = render_view->GetRoutingID(); routing_id_ = render_view->GetRoutingID();