Commit 1b66a219 authored by Sébastien Séguin-Gagnon's avatar Sébastien Séguin-Gagnon Committed by Commit Bot

Fix LinkGenerationError enum in text_fragment_selector_generator.

Max value was not set to the right value. Also changed to enum class,
which would cause the previous situation to not compile.

Change-Id: I0476ae21eaac5c3ef52de5bb70af073548333564
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2459691Reviewed-by: default avatarDavid Bokan <bokan@chromium.org>
Commit-Queue: sebsg <sebsg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#815215}
parent 7aa0bcc9
...@@ -32,7 +32,7 @@ class CORE_EXPORT TextFragmentSelectorGenerator final ...@@ -32,7 +32,7 @@ class CORE_EXPORT TextFragmentSelectorGenerator final
public blink::mojom::blink::TextFragmentSelectorProducer { public blink::mojom::blink::TextFragmentSelectorProducer {
public: public:
// Update corresponding |LinkGenerationError| in enums.xml. // Update corresponding |LinkGenerationError| in enums.xml.
enum LinkGenerationError { enum class LinkGenerationError {
kIncorrectSelector, kIncorrectSelector,
kNoRange, kNoRange,
kNoContext, kNoContext,
...@@ -40,7 +40,7 @@ class CORE_EXPORT TextFragmentSelectorGenerator final ...@@ -40,7 +40,7 @@ class CORE_EXPORT TextFragmentSelectorGenerator final
kContextLimitReached, kContextLimitReached,
kEmptySelection, kEmptySelection,
kMaxValue = kContextLimitReached kMaxValue = kEmptySelection
}; };
explicit TextFragmentSelectorGenerator() = default; explicit TextFragmentSelectorGenerator() = default;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment