Commit 3f0b69a5 authored by dcheng's avatar dcheng Committed by Commit bot

Remove implicit conversions from scoped_refptr to T* in c/b/chromeos/input_method

This patch was generated by running the rewrite_scoped_refptr clang tool
on a ChromeOS build.

BUG=110610

Review URL: https://codereview.chromium.org/576503002

Cr-Commit-Position: refs/heads/master@{#295120}
parent d438d276
...@@ -741,16 +741,17 @@ void InputMethodManagerImpl::ReconfigureIMFramework( ...@@ -741,16 +741,17 @@ void InputMethodManagerImpl::ReconfigureIMFramework(
void InputMethodManagerImpl::SetState( void InputMethodManagerImpl::SetState(
scoped_refptr<InputMethodManager::State> state) { scoped_refptr<InputMethodManager::State> state) {
DCHECK(state); DCHECK(state.get());
InputMethodManagerImpl::StateImpl* new_impl_state = InputMethodManagerImpl::StateImpl* new_impl_state =
static_cast<InputMethodManagerImpl::StateImpl*>(state.get()); static_cast<InputMethodManagerImpl::StateImpl*>(state.get());
const bool need_update_current_input_method = const bool need_update_current_input_method =
(state_ ? state_->current_input_method.id() != (state_.get()
new_impl_state->current_input_method.id() ? state_->current_input_method.id() !=
: true); new_impl_state->current_input_method.id()
: true);
state_ = new_impl_state; state_ = new_impl_state;
if (state_ && state_->active_input_method_ids.size()) { if (state_.get() && state_->active_input_method_ids.size()) {
// Initialize candidate window controller and widgets such as // Initialize candidate window controller and widgets such as
// candidate window, infolist and mode indicator. Note, mode // candidate window, infolist and mode indicator. Note, mode
// indicator is used by only keyboard layout input methods. // indicator is used by only keyboard layout input methods.
......
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