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

Side by Side Diff: chrome/renderer/render_view.cc

Issue 267076: Turn NULL used as int to 0. (Closed)
Patch Set: Created 11 years, 2 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
« no previous file with comments | « chrome/common/child_process_host.cc ('k') | chrome/renderer/render_widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome/renderer/render_view.h" 5 #include "chrome/renderer/render_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1298 matching lines...) Expand 10 before | Expand all | Expand 10 after
1309 1309
1310 int32 routing_id = MSG_ROUTING_NONE; 1310 int32 routing_id = MSG_ROUTING_NONE;
1311 bool user_gesture = creator->isProcessingUserGesture(); 1311 bool user_gesture = creator->isProcessingUserGesture();
1312 1312
1313 render_thread_->Send( 1313 render_thread_->Send(
1314 new ViewHostMsg_CreateWindow(routing_id_, user_gesture, &routing_id)); 1314 new ViewHostMsg_CreateWindow(routing_id_, user_gesture, &routing_id));
1315 if (routing_id == MSG_ROUTING_NONE) 1315 if (routing_id == MSG_ROUTING_NONE)
1316 return NULL; 1316 return NULL;
1317 1317
1318 RenderView* view = RenderView::Create(render_thread_, 1318 RenderView* view = RenderView::Create(render_thread_,
1319 NULL, 1319 0,
1320 routing_id_, 1320 routing_id_,
1321 renderer_preferences_, 1321 renderer_preferences_,
1322 webkit_preferences_, 1322 webkit_preferences_,
1323 shared_popup_counter_, 1323 shared_popup_counter_,
1324 routing_id); 1324 routing_id);
1325 view->opened_by_user_gesture_ = user_gesture; 1325 view->opened_by_user_gesture_ = user_gesture;
1326 1326
1327 // Record the security origin of the creator. 1327 // Record the security origin of the creator.
1328 GURL creator_url(creator->securityOrigin().toString().utf8()); 1328 GURL creator_url(creator->securityOrigin().toString().utf8());
1329 if (!creator_url.is_valid() || !creator_url.IsStandard()) 1329 if (!creator_url.is_valid() || !creator_url.IsStandard())
(...skipping 2319 matching lines...) Expand 10 before | Expand all | Expand 10 after
3649 message->EnableMessagePumping(); // Runs a nested message loop. 3649 message->EnableMessagePumping(); // Runs a nested message loop.
3650 #endif 3650 #endif
3651 3651
3652 bool rv = Send(message); 3652 bool rv = Send(message);
3653 3653
3654 PluginChannelHost::Broadcast( 3654 PluginChannelHost::Broadcast(
3655 new PluginMsg_ResetModalDialogEvent(host_window_)); 3655 new PluginMsg_ResetModalDialogEvent(host_window_));
3656 3656
3657 return rv; 3657 return rv;
3658 } 3658 }
OLDNEW
« no previous file with comments | « chrome/common/child_process_host.cc ('k') | chrome/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698