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

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

Issue 2519333007: <webview> Fix crash when closing chrome://chrome-signin (Closed)
Patch Set: OS_LINUX always true when OS_CHROMEOS, excluse OS_CHROMEOS 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 2462 matching lines...) Expand 10 before | Expand all | Expand 10 after
2473 node->current_frame_host()->GetRenderWidgetHost()->SendScreenRects(); 2473 node->current_frame_host()->GetRenderWidgetHost()->SendScreenRects();
2474 } 2474 }
2475 2475
2476 RenderWidgetHostViewBase* rwhv = 2476 RenderWidgetHostViewBase* rwhv =
2477 static_cast<RenderWidgetHostViewBase*>(GetRenderWidgetHostView()); 2477 static_cast<RenderWidgetHostViewBase*>(GetRenderWidgetHostView());
2478 if (rwhv) { 2478 if (rwhv) {
2479 SendPageMessage(new PageMsg_UpdateWindowScreenRect( 2479 SendPageMessage(new PageMsg_UpdateWindowScreenRect(
2480 MSG_ROUTING_NONE, rwhv->GetBoundsInRootWindow())); 2480 MSG_ROUTING_NONE, rwhv->GetBoundsInRootWindow()));
2481 } 2481 }
2482 2482
2483 if (browser_plugin_embedder_) 2483 if (browser_plugin_embedder_ && !is_being_destroyed_)
2484 browser_plugin_embedder_->DidSendScreenRects(); 2484 browser_plugin_embedder_->DidSendScreenRects();
2485 } 2485 }
2486 2486
2487 void WebContentsImpl::OnFirstPaintAfterLoad( 2487 void WebContentsImpl::OnFirstPaintAfterLoad(
2488 RenderWidgetHostImpl* render_widget_host) { 2488 RenderWidgetHostImpl* render_widget_host) {
2489 for (auto& observer : observers_) 2489 for (auto& observer : observers_)
2490 observer.DidFirstPaintAfterLoad(render_widget_host); 2490 observer.DidFirstPaintAfterLoad(render_widget_host);
2491 } 2491 }
2492 2492
2493 TextInputManager* WebContentsImpl::GetTextInputManager() { 2493 TextInputManager* WebContentsImpl::GetTextInputManager() {
(...skipping 2787 matching lines...) Expand 10 before | Expand all | Expand 10 after
5281 dialog_manager_ = dialog_manager; 5281 dialog_manager_ = dialog_manager;
5282 } 5282 }
5283 5283
5284 void WebContentsImpl::RemoveBindingSet(const std::string& interface_name) { 5284 void WebContentsImpl::RemoveBindingSet(const std::string& interface_name) {
5285 auto it = binding_sets_.find(interface_name); 5285 auto it = binding_sets_.find(interface_name);
5286 if (it != binding_sets_.end()) 5286 if (it != binding_sets_.end())
5287 binding_sets_.erase(it); 5287 binding_sets_.erase(it);
5288 } 5288 }
5289 5289
5290 } // namespace content 5290 } // 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