| OLD | NEW | 
|    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.h" |    5 #include "chrome/browser/spellchecker/spellcheck_host.h" | 
|    6  |    6  | 
|    7 #include "base/string_split.h" |    7 #include "base/string_split.h" | 
|    8 #include "base/synchronization/waitable_event.h" |    8 #include "base/synchronization/waitable_event.h" | 
|    9 #include "chrome/browser/prefs/pref_member.h" |    9 #include "chrome/browser/api/prefs/pref_member.h" | 
|   10 #include "chrome/browser/profiles/profile.h" |   10 #include "chrome/browser/profiles/profile.h" | 
|   11 #include "chrome/browser/spellchecker/spellcheck_host_impl.h" |   11 #include "chrome/browser/spellchecker/spellcheck_host_impl.h" | 
|   12 #include "chrome/browser/spellchecker/spellcheck_platform_mac.h" |   12 #include "chrome/browser/spellchecker/spellcheck_platform_mac.h" | 
|   13 #include "chrome/common/pref_names.h" |   13 #include "chrome/common/pref_names.h" | 
|   14 #include "chrome/common/spellcheck_common.h" |   14 #include "chrome/common/spellcheck_common.h" | 
|   15  |   15  | 
|   16 using content::BrowserThread; |   16 using content::BrowserThread; | 
|   17  |   17  | 
|   18 namespace { |   18 namespace { | 
|   19  |   19  | 
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  105 } |  105 } | 
|  106  |  106  | 
|  107 // static |  107 // static | 
|  108 SpellCheckHost::EventType SpellCheckHost::WaitStatusEvent() { |  108 SpellCheckHost::EventType SpellCheckHost::WaitStatusEvent() { | 
|  109   DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |  109   DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 
|  110  |  110  | 
|  111   if (g_status_event) |  111   if (g_status_event) | 
|  112     g_status_event->Wait(); |  112     g_status_event->Wait(); | 
|  113   return g_status_type; |  113   return g_status_type; | 
|  114 } |  114 } | 
| OLD | NEW |