diff options
author | carlosk <carlosk@chromium.org> | 2015-12-16 06:40:35 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-16 14:41:34 +0000 |
commit | d80262f530419ce91eedddff4347949875b5db92 (patch) | |
tree | b31001bd84cfb3cfb83fc8aadccfa3d29e78dab9 /extensions/browser/app_window | |
parent | 7624161daedad7c0639635f92cae95ce267d7ce1 (diff) | |
download | chromium_src-d80262f530419ce91eedddff4347949875b5db92.zip chromium_src-d80262f530419ce91eedddff4347949875b5db92.tar.gz chromium_src-d80262f530419ce91eedddff4347949875b5db92.tar.bz2 |
PlzNavigate: Add helper method for checking if PlzNavigate is enabled.
In the interest of simplifying the code for checking if browser side
navigation is enabled this change creates a new helper method and
replaces all current occurrences of the "extended" form.
BUG=368813
TBR=mmenke@chromium.org
Review URL: https://codereview.chromium.org/1517643002
Cr-Commit-Position: refs/heads/master@{#365527}
Diffstat (limited to 'extensions/browser/app_window')
-rw-r--r-- | extensions/browser/app_window/app_window.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/browser/app_window/app_window.cc b/extensions/browser/app_window/app_window.cc index f3c9d97..4a508fc 100644 --- a/extensions/browser/app_window/app_window.cc +++ b/extensions/browser/app_window/app_window.cc @@ -23,6 +23,7 @@ #include "content/public/browser/render_widget_host.h" #include "content/public/browser/resource_dispatcher_host.h" #include "content/public/browser/web_contents.h" +#include "content/public/common/browser_side_navigation_policy.h" #include "content/public/common/content_switches.h" #include "content/public/common/media_stream_request.h" #include "extensions/browser/app_window/app_delegate.h" @@ -452,8 +453,7 @@ void AppWindow::SetOnFirstCommitCallback(const base::Closure& callback) { } void AppWindow::OnReadyToCommitFirstNavigation() { - CHECK(base::CommandLine::ForCurrentProcess()->HasSwitch( - ::switches::kEnableBrowserSideNavigation)); + CHECK(content::IsBrowserSideNavigationEnabled()); WindowEventsReady(); if (on_first_commit_callback_.is_null()) return; |