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

Side by Side Diff: chrome/browser/spellchecker.cc

Issue 19028: Roll forward 8722,8721 (Closed)
Patch Set: Created 11 years, 11 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/spellchecker.h ('k') | chrome/browser/visitedlink_master.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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.h" 5 #include "chrome/browser/spellchecker.h"
6 #include "base/basictypes.h" 6 #include "base/basictypes.h"
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/histogram.h" 9 #include "base/histogram.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/path_service.h" 11 #include "base/path_service.h"
12 #include "base/string_util.h" 12 #include "base/string_util.h"
13 #include "base/thread.h" 13 #include "base/thread.h"
14 #include "chrome/app/locales/locale_settings.h" 14 #include "chrome/app/locales/locale_settings.h"
15 #include "chrome/browser/browser_process.h" 15 #include "chrome/browser/browser_process.h"
16 #include "chrome/browser/net/url_fetcher.h" 16 #include "chrome/browser/net/url_fetcher.h"
17 #if defined(OS_WIN)
18 // TODO(port): remove scaffolding, use profile.h for both POSIX and WIN.
17 #include "chrome/browser/profile.h" 19 #include "chrome/browser/profile.h"
20 #endif
18 #include "chrome/common/chrome_constants.h" 21 #include "chrome/common/chrome_constants.h"
19 #include "chrome/common/chrome_counters.h" 22 #include "chrome/common/chrome_counters.h"
20 #include "chrome/common/chrome_paths.h" 23 #include "chrome/common/chrome_paths.h"
21 #include "chrome/common/l10n_util.h" 24 #include "chrome/common/l10n_util.h"
22 #include "chrome/common/pref_names.h" 25 #include "chrome/common/pref_names.h"
23 #include "chrome/common/pref_service.h" 26 #include "chrome/common/pref_service.h"
24 #include "chrome/third_party/hunspell/src/hunspell/hunspell.hxx" 27 #include "chrome/third_party/hunspell/src/hunspell/hunspell.hxx"
25 #include "net/url_request/url_request.h" 28 #include "net/url_request/url_request.h"
26 29
27 #include "generated_resources.h" 30 #include "generated_resources.h"
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 hunspell_->put_word(word_to_add.c_str()); 597 hunspell_->put_word(word_to_add.c_str());
595 598
596 // Now add the word to the custom dictionary file. 599 // Now add the word to the custom dictionary file.
597 Task* write_word_task = 600 Task* write_word_task =
598 new AddWordToCustomDictionaryTask(custom_dictionary_file_name_, word); 601 new AddWordToCustomDictionaryTask(custom_dictionary_file_name_, word);
599 if (file_loop_) 602 if (file_loop_)
600 file_loop_->PostTask(FROM_HERE, write_word_task); 603 file_loop_->PostTask(FROM_HERE, write_word_task);
601 else 604 else
602 write_word_task->Run(); 605 write_word_task->Run();
603 } 606 }
OLDNEW
« no previous file with comments | « chrome/browser/spellchecker.h ('k') | chrome/browser/visitedlink_master.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698