| Index: content/browser/tab_contents/navigation_entry.cc
|
| diff --git a/content/browser/tab_contents/navigation_entry.cc b/content/browser/tab_contents/navigation_entry.cc
|
| index 5d71d00484102952c2e3427d6a5fb3445fa94b36..d98916016de834698ec1d297e839bce0721ab4b9 100644
|
| --- a/content/browser/tab_contents/navigation_entry.cc
|
| +++ b/content/browser/tab_contents/navigation_entry.cc
|
| @@ -105,3 +105,11 @@ const string16& NavigationEntry::GetTitleForDisplay(
|
| bool NavigationEntry::IsViewSourceMode() const {
|
| return virtual_url_.SchemeIs(chrome::kViewSourceScheme);
|
| }
|
| +
|
| +bool NavigationEntry::IsBrowserInitiated() const {
|
| + // Most PageTransition types are browser initiated. LINK and FORM_SUBMIT
|
| + // indicate it was a renderer-initiated navigation.
|
| + return transition_type_ != PageTransition::LINK &&
|
| + transition_type_ != PageTransition::FORM_SUBMIT;
|
| +}
|
| +
|
|
|