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

Unified Diff: ios/chrome/browser/web/auto_reload_bridge.mm

Issue 2826593003: Fix reload in AutoReload (Closed)
Patch Set: Created 3 years, 8 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 | « ios/chrome/browser/web/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/web/auto_reload_bridge.mm
diff --git a/ios/chrome/browser/web/auto_reload_bridge.mm b/ios/chrome/browser/web/auto_reload_bridge.mm
index 817f740f550605876e6cb04cb40d0518f1d0bad3..1d968f2b686d03ce16d1f3e144364922d1423a23 100644
--- a/ios/chrome/browser/web/auto_reload_bridge.mm
+++ b/ios/chrome/browser/web/auto_reload_bridge.mm
@@ -8,6 +8,8 @@
#include "base/ios/weak_nsobject.h"
#include "base/mac/scoped_nsobject.h"
+#import "ios/chrome/browser/tabs/tab.h"
+#import "ios/web/public/navigation_manager.h"
#include "net/base/network_change_notifier.h"
namespace {
@@ -80,7 +82,8 @@ class NetworkChangeObserverBridge
#pragma mark AutoReloadDelegate methods
- (void)reload {
- [_tab reload];
+ [_tab navigationManager]->Reload(web::ReloadType::NORMAL,
+ false /* check_for_repost */);
}
@end
« no previous file with comments | « ios/chrome/browser/web/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698