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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2546523004: <webview> Fix crash when closing chrome://chrome-signin (Closed)
Patch Set: Created 4 years 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/browser/apps/guest_view/web_view_browsertest.cc ('k') | no next file » | 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) 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/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <utility> 10 #include <utility>
(...skipping 2458 matching lines...) Expand 10 before | Expand all | Expand 10 after
2469 node->current_frame_host()->GetRenderWidgetHost()->SendScreenRects(); 2469 node->current_frame_host()->GetRenderWidgetHost()->SendScreenRects();
2470 } 2470 }
2471 2471
2472 RenderWidgetHostViewBase* rwhv = 2472 RenderWidgetHostViewBase* rwhv =
2473 static_cast<RenderWidgetHostViewBase*>(GetRenderWidgetHostView()); 2473 static_cast<RenderWidgetHostViewBase*>(GetRenderWidgetHostView());
2474 if (rwhv) { 2474 if (rwhv) {
2475 SendPageMessage(new PageMsg_UpdateWindowScreenRect( 2475 SendPageMessage(new PageMsg_UpdateWindowScreenRect(
2476 MSG_ROUTING_NONE, rwhv->GetBoundsInRootWindow())); 2476 MSG_ROUTING_NONE, rwhv->GetBoundsInRootWindow()));
2477 } 2477 }
2478 2478
2479 if (browser_plugin_embedder_) 2479 if (browser_plugin_embedder_ && !is_being_destroyed_)
2480 browser_plugin_embedder_->DidSendScreenRects(); 2480 browser_plugin_embedder_->DidSendScreenRects();
2481 } 2481 }
2482 2482
2483 void WebContentsImpl::OnFirstPaintAfterLoad( 2483 void WebContentsImpl::OnFirstPaintAfterLoad(
2484 RenderWidgetHostImpl* render_widget_host) { 2484 RenderWidgetHostImpl* render_widget_host) {
2485 for (auto& observer : observers_) 2485 for (auto& observer : observers_)
2486 observer.DidFirstPaintAfterLoad(render_widget_host); 2486 observer.DidFirstPaintAfterLoad(render_widget_host);
2487 } 2487 }
2488 2488
2489 TextInputManager* WebContentsImpl::GetTextInputManager() { 2489 TextInputManager* WebContentsImpl::GetTextInputManager() {
(...skipping 2787 matching lines...) Expand 10 before | Expand all | Expand 10 after
5277 dialog_manager_ = dialog_manager; 5277 dialog_manager_ = dialog_manager;
5278 } 5278 }
5279 5279
5280 void WebContentsImpl::RemoveBindingSet(const std::string& interface_name) { 5280 void WebContentsImpl::RemoveBindingSet(const std::string& interface_name) {
5281 auto it = binding_sets_.find(interface_name); 5281 auto it = binding_sets_.find(interface_name);
5282 if (it != binding_sets_.end()) 5282 if (it != binding_sets_.end())
5283 binding_sets_.erase(it); 5283 binding_sets_.erase(it);
5284 } 5284 }
5285 5285
5286 } // namespace content 5286 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/apps/guest_view/web_view_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698