OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/arc/page_transition_util.h" | 5 #include "components/arc/intent_helper/page_transition_util.h" |
6 | 6 |
7 namespace arc { | 7 namespace arc { |
8 | 8 |
9 bool ShouldIgnoreNavigation(ui::PageTransition page_transition, | 9 bool ShouldIgnoreNavigation(ui::PageTransition page_transition, |
10 bool allow_form_submit) { | 10 bool allow_form_submit) { |
11 // Mask out server-sided redirects only. | 11 // Mask out server-sided redirects only. |
12 page_transition = ui::PageTransitionFromInt( | 12 page_transition = ui::PageTransitionFromInt( |
13 page_transition & ~ui::PAGE_TRANSITION_SERVER_REDIRECT); | 13 page_transition & ~ui::PAGE_TRANSITION_SERVER_REDIRECT); |
14 | 14 |
15 if (!ui::PageTransitionCoreTypeIs(page_transition, | 15 if (!ui::PageTransitionCoreTypeIs(page_transition, |
(...skipping 10 matching lines...) Expand all Loading... |
26 // Qualifiers indicate that this navigation was the result of a click on a | 26 // Qualifiers indicate that this navigation was the result of a click on a |
27 // forward/back button, or typing in the URL bar, or a client-side redirect, | 27 // forward/back button, or typing in the URL bar, or a client-side redirect, |
28 // etc. Don't handle any of those types of navigations. | 28 // etc. Don't handle any of those types of navigations. |
29 return true; | 29 return true; |
30 } | 30 } |
31 | 31 |
32 return false; | 32 return false; |
33 } | 33 } |
34 | 34 |
35 } // namespace arc | 35 } // namespace arc |
OLD | NEW |