| 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/renderer/spellchecker/spellcheck_provider.h" | 5 #include "chrome/renderer/spellchecker/spellcheck_provider.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
| 9 #include "chrome/common/chrome_switches.h" | 9 #include "chrome/common/chrome_switches.h" |
| 10 #include "chrome/common/spellcheck_marker.h" | 10 #include "chrome/common/spellcheck_marker.h" |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 results[i].length = last_results_[i].length; | 342 results[i].length = last_results_[i].length; |
| 343 results[i].replacement = last_results_[i].replacement; | 343 results[i].replacement = last_results_[i].replacement; |
| 344 } | 344 } |
| 345 completion->didFinishCheckingText(results); | 345 completion->didFinishCheckingText(results); |
| 346 return true; | 346 return true; |
| 347 } | 347 } |
| 348 } | 348 } |
| 349 | 349 |
| 350 return false; | 350 return false; |
| 351 } | 351 } |
| 352 |
| 353 void SpellCheckProvider::OnDestruct() { |
| 354 delete this; |
| 355 } |
| OLD | NEW |