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

Unified Diff: content/browser/renderer_host/text_input_manager.h

Issue 2208093004: Use focused RenderWidgetHostImpl instead of TextInputManager::GetActiveWidget() to obtain TextSelec… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed some crashes 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/browser/renderer_host/text_input_manager.h
diff --git a/content/browser/renderer_host/text_input_manager.h b/content/browser/renderer_host/text_input_manager.h
index b09ae5069420f5c96af8b022c118a5a5e52fc008..d3040c6aa5f878969e249fd479bc01e71c07c4b0 100644
--- a/content/browser/renderer_host/text_input_manager.h
+++ b/content/browser/renderer_host/text_input_manager.h
@@ -106,6 +106,7 @@ class CONTENT_EXPORT TextInputManager {
// The following method returns the text selection state for the given |view|.
// If |view| == nullptr, it will assume |active_view_| and return its state.
// In the case of |active_view_| == nullptr, the method will return nullptr.
+ // This method will not return nullptr when |view| != nullptr.
const TextSelection* GetTextSelection(
RenderWidgetHostViewBase* view = nullptr) const;

Powered by Google App Engine
This is Rietveld 408576698