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

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

Issue 195067: Turn NULL used as int to 0.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
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 | Annotate | Revision Log
« 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 1297 matching lines...) Expand 10 before | Expand all | Expand 10 after
1308 1308
1309 int32 routing_id = MSG_ROUTING_NONE; 1309 int32 routing_id = MSG_ROUTING_NONE;
1310 bool user_gesture = creator->isProcessingUserGesture(); 1310 bool user_gesture = creator->isProcessingUserGesture();
1311 1311
1312 render_thread_->Send( 1312 render_thread_->Send(
1313 new ViewHostMsg_CreateWindow(routing_id_, user_gesture, &routing_id)); 1313 new ViewHostMsg_CreateWindow(routing_id_, user_gesture, &routing_id));
1314 if (routing_id == MSG_ROUTING_NONE) 1314 if (routing_id == MSG_ROUTING_NONE)
1315 return NULL; 1315 return NULL;
1316 1316
1317 RenderView* view = RenderView::Create(render_thread_, 1317 RenderView* view = RenderView::Create(render_thread_,
1318 NULL, 1318 0,
1319 routing_id_, 1319 routing_id_,
1320 renderer_preferences_, 1320 renderer_preferences_,
1321 webkit_preferences_, 1321 webkit_preferences_,
1322 shared_popup_counter_, 1322 shared_popup_counter_,
1323 routing_id); 1323 routing_id);
1324 view->opened_by_user_gesture_ = user_gesture; 1324 view->opened_by_user_gesture_ = user_gesture;
1325 1325
1326 // Record the security origin of the creator. 1326 // Record the security origin of the creator.
1327 GURL creator_url(creator->securityOrigin().toString().utf8()); 1327 GURL creator_url(creator->securityOrigin().toString().utf8());
1328 if (!creator_url.is_valid() || !creator_url.IsStandard()) 1328 if (!creator_url.is_valid() || !creator_url.IsStandard())
(...skipping 2308 matching lines...) Expand 10 before | Expand all | Expand 10 after
3637 new PluginMsg_SignalModalDialogEvent(host_window_)); 3637 new PluginMsg_SignalModalDialogEvent(host_window_));
3638 3638
3639 message->EnableMessagePumping(); // Runs a nested message loop. 3639 message->EnableMessagePumping(); // Runs a nested message loop.
3640 bool rv = Send(message); 3640 bool rv = Send(message);
3641 3641
3642 PluginChannelHost::Broadcast( 3642 PluginChannelHost::Broadcast(
3643 new PluginMsg_ResetModalDialogEvent(host_window_)); 3643 new PluginMsg_ResetModalDialogEvent(host_window_));
3644 3644
3645 return rv; 3645 return rv;
3646 } 3646 }
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