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

Unified Diff: ios/web_view/internal/cwv_web_view.mm

Issue 2935923002: Correctly update CWVWebView properties on state restoration. (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web_view/internal/cwv_web_view.mm
diff --git a/ios/web_view/internal/cwv_web_view.mm b/ios/web_view/internal/cwv_web_view.mm
index 616defce008771a3198a428a3541eeea3fbfea92..c927c4d1175b786aebf252c1c8d240a9dae2f347 100644
--- a/ios/web_view/internal/cwv_web_view.mm
+++ b/ios/web_view/internal/cwv_web_view.mm
@@ -373,6 +373,12 @@ static NSString* gUserAgentProduct = nil;
_translationController.webState = _webState.get();
[self addInternalWebViewAsSubview];
+
+ [self updateNavigationAvailability];
+ [self updateCurrentURLs];
+ self.loading = NO;
+ self.estimatedProgress = 0.0;
+ self.title = base::SysUTF16ToNSString(_webState->GetTitle());
Hiroshi Ichikawa 2017/06/13 07:40:11 Optional: Maybe factor this out to -updateTitle me
Eugene But (OOO till 7-30) 2017/06/13 07:56:41 Done.
}
// Adds the web view provided by |_webState| as a subview unless it has already.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698