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

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 943633003: [WebView] Remove onFailure from VisualStateCallback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index e6cc05197d3a25613468d2938787f3f54da90757..6f8f33d6058c4f6b0ba8323cd0ae067b213755bd 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -202,10 +202,6 @@ RenderFrameHostImpl::~RenderFrameHostImpl() {
// the dtor has run.
swapout_event_monitor_timeout_.reset();
- for (const auto& iter: visual_state_callbacks_) {
- iter.second.Run(false);
- }
boliu 2015/02/19 18:43:41 There's a bit inconsistent between renderer and br
Ignacio Solla 2015/02/20 11:10:41 Thanks, good catch. So how about do not deliver
boliu 2015/02/20 16:50:55 +piman to decide I like hard guarantees over sile
Ignacio Solla 2015/02/24 12:49:35 Done.
-
if (render_widget_host_)
render_widget_host_->Cleanup();
}
@@ -1127,7 +1123,7 @@ void RenderFrameHostImpl::OnJavaScriptExecuteResponse(
void RenderFrameHostImpl::OnVisualStateResponse(uint64 id) {
auto it = visual_state_callbacks_.find(id);
if (it != visual_state_callbacks_.end()) {
- it->second.Run(true);
+ it->second.Run();
visual_state_callbacks_.erase(it);
} else {
NOTREACHED() << "Received script response for unknown request";

Powered by Google App Engine
This is Rietveld 408576698