| 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/spellchecker/spellcheck_custom_dictionary.h" | 5 #include "chrome/browser/spellchecker/spellcheck_custom_dictionary.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <functional> | 9 #include <functional> |
| 8 | 10 |
| 9 #include "base/files/file_util.h" | 11 #include "base/files/file_util.h" |
| 10 #include "base/files/important_file_writer.h" | 12 #include "base/files/important_file_writer.h" |
| 11 #include "base/md5.h" | 13 #include "base/md5.h" |
| 12 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
| 13 #include "base/strings/string_split.h" | 15 #include "base/strings/string_split.h" |
| 14 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
| 15 #include "chrome/browser/spellchecker/spellcheck_host_metrics.h" | 17 #include "chrome/browser/spellchecker/spellcheck_host_metrics.h" |
| 16 #include "chrome/common/chrome_constants.h" | 18 #include "chrome/common/chrome_constants.h" |
| (...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 } | 526 } |
| 525 | 527 |
| 526 void SpellcheckCustomDictionary::Notify(const Change& dictionary_change) { | 528 void SpellcheckCustomDictionary::Notify(const Change& dictionary_change) { |
| 527 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 529 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 528 if (!IsLoaded() || dictionary_change.empty()) | 530 if (!IsLoaded() || dictionary_change.empty()) |
| 529 return; | 531 return; |
| 530 FOR_EACH_OBSERVER(Observer, | 532 FOR_EACH_OBSERVER(Observer, |
| 531 observers_, | 533 observers_, |
| 532 OnCustomDictionaryChanged(dictionary_change)); | 534 OnCustomDictionaryChanged(dictionary_change)); |
| 533 } | 535 } |
| OLD | NEW |