OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/tab_contents/spellchecker_submenu_observer.h" | 5 #include "chrome/browser/tab_contents/spellchecker_submenu_observer.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/app/chrome_command_ids.h" | 8 #include "chrome/app/chrome_command_ids.h" |
9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/prefs/pref_member.h" | 10 #include "chrome/browser/prefs/pref_member.h" |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 profile->GetPrefs(), | 168 profile->GetPrefs(), |
169 NULL); | 169 NULL); |
170 dictionary_language.SetValue(languages_[language]); | 170 dictionary_language.SetValue(languages_[language]); |
171 } | 171 } |
172 return; | 172 return; |
173 } | 173 } |
174 | 174 |
175 RenderViewHost* rvh = proxy_->GetRenderViewHost(); | 175 RenderViewHost* rvh = proxy_->GetRenderViewHost(); |
176 switch (command_id) { | 176 switch (command_id) { |
177 case IDC_CHECK_SPELLING_OF_THIS_FIELD: | 177 case IDC_CHECK_SPELLING_OF_THIS_FIELD: |
178 rvh->Send(new SpellCheckMsg_ToggleSpellCheck(rvh->routing_id())); | 178 rvh->Send(new SpellCheckMsg_ToggleSpellCheck(rvh->GetRoutingID())); |
179 break; | 179 break; |
180 } | 180 } |
181 } | 181 } |
OLD | NEW |