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

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

Issue 8477004: Have content/ create and destroy its own threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: With this patchset, Chrome runs and exits normally on Linux. Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_host_impl.h" 5 #include "chrome/browser/spellchecker/spellcheck_host_impl.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/message_loop.h"
12 #include "base/path_service.h" 13 #include "base/path_service.h"
13 #include "base/string_split.h" 14 #include "base/string_split.h"
14 #include "base/threading/thread_restrictions.h" 15 #include "base/threading/thread_restrictions.h"
15 #include "base/utf_string_conversions.h" 16 #include "base/utf_string_conversions.h"
16 #include "chrome/browser/prefs/pref_service.h" 17 #include "chrome/browser/prefs/pref_service.h"
17 #include "chrome/browser/profiles/profile.h" 18 #include "chrome/browser/profiles/profile.h"
18 #include "chrome/browser/spellchecker/spellcheck_host_metrics.h" 19 #include "chrome/browser/spellchecker/spellcheck_host_metrics.h"
19 #include "chrome/browser/spellchecker/spellcheck_profile_provider.h" 20 #include "chrome/browser/spellchecker/spellcheck_profile_provider.h"
20 #include "chrome/browser/spellchecker/spellchecker_platform_engine.h" 21 #include "chrome/browser/spellchecker/spellchecker_platform_engine.h"
21 #include "chrome/common/chrome_constants.h" 22 #include "chrome/common/chrome_constants.h"
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 } 477 }
477 478
478 void SpellCheckHostImpl::AddWordComplete(const std::string& word) { 479 void SpellCheckHostImpl::AddWordComplete(const std::string& word) {
479 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 480 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
480 481
481 for (RenderProcessHost::iterator i(RenderProcessHost::AllHostsIterator()); 482 for (RenderProcessHost::iterator i(RenderProcessHost::AllHostsIterator());
482 !i.IsAtEnd(); i.Advance()) { 483 !i.IsAtEnd(); i.Advance()) {
483 i.GetCurrentValue()->Send(new SpellCheckMsg_WordAdded(word)); 484 i.GetCurrentValue()->Send(new SpellCheckMsg_WordAdded(word));
484 } 485 }
485 } 486 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698