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

Unified Diff: content/renderer/render_view_impl.cc

Issue 2222813002: Remove the use of WebRange in ContentDetector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Maybe now fix compile. Created 4 years, 4 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: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 5766f5e3cbc4e2fbf79bbe9831f37b7be7fe6db0..cacdbad4c8008960d977b41cc345a2b06216ce86 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -2813,9 +2813,9 @@ WebURL RenderViewImpl::detectContentIntentAt(
// Process the position with all the registered content detectors until
// a match is found. Priority is provided by their relative order.
for (const auto& detector : content_detectors_) {
- ContentDetector::Result content = detector->FindTappedContent(touch_hit);
- if (content.valid) {
- return content.intent_url;
+ WebURL intent = detector->FindTappedContent(touch_hit);
+ if (intent.isValid()) {
+ return intent;
}
}
return WebURL();
« no previous file with comments | « content/renderer/android/content_detector.cc ('k') | third_party/WebKit/Source/core/editing/SurroundingText.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698