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

Unified Diff: chrome/renderer/content_settings_observer.cc

Issue 2553053002: Use ReloadMainResource for per-frame reload (Closed)
Patch Set: rf 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/content_settings_observer.cc
diff --git a/chrome/renderer/content_settings_observer.cc b/chrome/renderer/content_settings_observer.cc
index 43850b204c9e8e6e9721cb5f4755bdcd00f48a2d..e9a614cd39d0c5f2f2a567fc80cfc5c862bc5eb8 100644
--- a/chrome/renderer/content_settings_observer.cc
+++ b/chrome/renderer/content_settings_observer.cc
@@ -445,7 +445,8 @@ void ContentSettingsObserver::OnSetAllowRunningInsecureContent(bool allow) {
void ContentSettingsObserver::OnReloadFrame() {
DCHECK(!render_frame()->GetWebFrame()->parent()) <<
"Should only be called on the main frame";
- render_frame()->GetWebFrame()->reload();
+ render_frame()->GetWebFrame()->reload(
+ blink::WebFrameLoadType::ReloadMainResource);
}
void ContentSettingsObserver::OnRequestFileSystemAccessAsyncResponse(
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698