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

Unified Diff: chrome/browser/extensions/api/tabs/tabs_api.cc

Issue 2561983002: NavigationController: Reload methods migration (Closed)
Patch Set: android build fix 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
Index: chrome/browser/extensions/api/tabs/tabs_api.cc
diff --git a/chrome/browser/extensions/api/tabs/tabs_api.cc b/chrome/browser/extensions/api/tabs/tabs_api.cc
index ba4fa0c60f639509038ab6940e7f62c7aa228250..4ed8a6ec4600d2dc95bcee44059f281a0f2fce0e 100644
--- a/chrome/browser/extensions/api/tabs/tabs_api.cc
+++ b/chrome/browser/extensions/api/tabs/tabs_api.cc
@@ -1552,10 +1552,11 @@ ExtensionFunction::ResponseAction TabsReloadFunction::Run() {
WindowOpenDisposition::CURRENT_TAB,
ui::PAGE_TRANSITION_RELOAD, false);
current_browser->OpenURL(params);
- } else if (bypass_cache) {
- web_contents->GetController().ReloadBypassingCache(true);
} else {
- web_contents->GetController().Reload(true);
+ web_contents->GetController().Reload(
+ true,
+ bypass_cache ? content::ReloadType::BYPASSING_CACHE
+ : content::ReloadType::NORMAL);
}
return RespondNow(NoArguments());

Powered by Google App Engine
This is Rietveld 408576698