| Index: content/browser/frame_host/navigation_controller_impl.cc
|
| diff --git a/content/browser/frame_host/navigation_controller_impl.cc b/content/browser/frame_host/navigation_controller_impl.cc
|
| index bf5dcff69d563d16586e4bf54f2f5434265ffdcd..3ff0d6b42786aa44809976cafb67b92858d20f61 100644
|
| --- a/content/browser/frame_host/navigation_controller_impl.cc
|
| +++ b/content/browser/frame_host/navigation_controller_impl.cc
|
| @@ -74,6 +74,7 @@
|
| #include "content/public/browser/user_metrics.h"
|
| #include "content/public/common/content_client.h"
|
| #include "content/public/common/content_constants.h"
|
| +#include "content/public/common/content_switches.h"
|
| #include "media/base/mime_util.h"
|
| #include "net/base/escape.h"
|
| #include "net/base/net_util.h"
|
| @@ -290,6 +291,14 @@ void NavigationControllerImpl::Restore(
|
| void NavigationControllerImpl::Reload(bool check_for_repost) {
|
| ReloadInternal(check_for_repost, RELOAD);
|
| }
|
| +void NavigationControllerImpl::ReloadToRefreshContent(bool check_for_repost) {
|
| + if (base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kEnableNonValidatingReloadOnRefreshContent)) {
|
| + ReloadInternal(check_for_repost, NO_RELOAD);
|
| + } else {
|
| + ReloadInternal(check_for_repost, RELOAD);
|
| + }
|
| +}
|
| void NavigationControllerImpl::ReloadIgnoringCache(bool check_for_repost) {
|
| ReloadInternal(check_for_repost, RELOAD_IGNORING_CACHE);
|
| }
|
|
|