summaryrefslogtreecommitdiff
path: root/chromium/components/spellcheck/renderer/spellcheck_provider.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/spellcheck/renderer/spellcheck_provider.h')
-rw-r--r--chromium/components/spellcheck/renderer/spellcheck_provider.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/chromium/components/spellcheck/renderer/spellcheck_provider.h b/chromium/components/spellcheck/renderer/spellcheck_provider.h
index 8e852264682..43e6dd2a46b 100644
--- a/chromium/components/spellcheck/renderer/spellcheck_provider.h
+++ b/chromium/components/spellcheck/renderer/spellcheck_provider.h
@@ -18,9 +18,9 @@
#include "mojo/public/cpp/bindings/remote.h"
#include "third_party/blink/public/web/web_text_check_client.h"
-#if BUILDFLAG(USE_WIN_HYBRID_SPELLCHECKER)
+#if defined(OS_WIN) && BUILDFLAG(USE_BROWSER_SPELLCHECKER)
#include <unordered_map>
-#endif // BUILDFLAG(USE_WIN_HYBRID_SPELLCHECKER)
+#endif // defined(OS_WIN) && BUILDFLAG(USE_BROWSER_SPELLCHECKER)
class SpellCheck;
struct SpellCheckResult;
@@ -46,14 +46,14 @@ class SpellCheckProvider : public content::RenderFrameObserver,
using WebTextCheckCompletions =
base::IDMap<std::unique_ptr<blink::WebTextCheckingCompletion>>;
-#if BUILDFLAG(USE_WIN_HYBRID_SPELLCHECKER)
+#if defined(OS_WIN) && BUILDFLAG(USE_BROWSER_SPELLCHECKER)
// A struct to hold information related to hybrid spell check requests.
struct HybridSpellCheckRequestInfo {
bool used_hunspell;
bool used_native;
base::TimeTicks request_start_ticks;
};
-#endif // BUILDFLAG(USE_WIN_HYBRID_SPELLCHECKER)
+#endif // defined(OS_WIN) && BUILDFLAG(USE_BROWSER_SPELLCHECKER)
SpellCheckProvider(
content::RenderFrame* render_frame,
@@ -155,9 +155,9 @@ class SpellCheckProvider : public content::RenderFrameObserver,
// Dictionary updated observer.
std::unique_ptr<DictionaryUpdateObserverImpl> dictionary_update_observer_;
-#if BUILDFLAG(USE_WIN_HYBRID_SPELLCHECKER)
+#if defined(OS_WIN) && BUILDFLAG(USE_BROWSER_SPELLCHECKER)
std::unordered_map<int, HybridSpellCheckRequestInfo> hybrid_requests_info_;
-#endif // BUILDFLAG(USE_WIN_HYBRID_SPELLCHECKER)
+#endif // defined(OS_WIN) && BUILDFLAG(USE_BROWSER_SPELLCHECKER)
base::WeakPtrFactory<SpellCheckProvider> weak_factory_{this};