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

Unified Diff: chrome/browser/chromeos/arc/page_transition_util.cc

Issue 2415983002: Move page_transition_util to components/arc/intent_helper/ (Closed)
Patch Set: Created 4 years, 2 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
Index: chrome/browser/chromeos/arc/page_transition_util.cc
diff --git a/chrome/browser/chromeos/arc/page_transition_util.cc b/chrome/browser/chromeos/arc/page_transition_util.cc
deleted file mode 100644
index 070e9fdfdcb066e3d76ca834e4fd253e89c3087c..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/arc/page_transition_util.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/chromeos/arc/page_transition_util.h"
-
-namespace arc {
-
-bool ShouldIgnoreNavigation(ui::PageTransition page_transition,
- bool allow_form_submit) {
- // Mask out server-sided redirects only.
- page_transition = ui::PageTransitionFromInt(
- page_transition & ~ui::PAGE_TRANSITION_SERVER_REDIRECT);
-
- if (!ui::PageTransitionCoreTypeIs(page_transition,
- ui::PAGE_TRANSITION_LINK) &&
- !(allow_form_submit &&
- ui::PageTransitionCoreTypeIs(page_transition,
- ui::PAGE_TRANSITION_FORM_SUBMIT))) {
- // Do not handle the |url| if this event wasn't spawned by the user clicking
- // on a link.
- return true;
- }
-
- if (ui::PageTransitionGetQualifier(page_transition) != 0) {
- // Qualifiers indicate that this navigation was the result of a click on a
- // forward/back button, or typing in the URL bar, or a client-side redirect,
- // etc. Don't handle any of those types of navigations.
- return true;
- }
-
- return false;
-}
-
-} // namespace arc
« no previous file with comments | « chrome/browser/chromeos/arc/page_transition_util.h ('k') | chrome/browser/chromeos/arc/page_transition_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698