Disable "Convert Enter-in-omnibox to a reload" for webview.

This CL disable "Convert Enter-in-omnibox to a reload" when the
navigation entry are created by WebView.

Some WebView initiated navigation were misclassified as "reload".

Bug: 794020
Change-Id: I443bc00601c33c94005aec0eb4f1592f83b6f64b
Reviewed-on: https://chromium-review.googlesource.com/824682
Reviewed-by: Camille Lamy <clamy@chromium.org>
Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#524086}
diff --git a/content/browser/frame_host/navigation_controller_impl.cc b/content/browser/frame_host/navigation_controller_impl.cc
index fdcabe4..aec02123 100644
--- a/content/browser/frame_host/navigation_controller_impl.cc
+++ b/content/browser/frame_host/navigation_controller_impl.cc
@@ -139,6 +139,10 @@
   if (!entry)
     return false;
 
+  // Skip navigations initiated by external applications.
+  if (entry->GetTransitionType() & ui::PAGE_TRANSITION_FROM_API)
+    return false;
+
   // We treat (PAGE_TRANSITION_RELOAD | PAGE_TRANSITION_FROM_ADDRESS_BAR),
   // PAGE_TRANSITION_TYPED or PAGE_TRANSITION_LINK transitions as navigations
   // which should be treated as reloads.