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/chrome_content_browser_client.h" | 5 #include "chrome/browser/chrome_content_browser_client.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 1581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1592 if (user_style_sheet_watcher) { | 1592 if (user_style_sheet_watcher) { |
1593 web_prefs->user_style_sheet_enabled = true; | 1593 web_prefs->user_style_sheet_enabled = true; |
1594 web_prefs->user_style_sheet_location = | 1594 web_prefs->user_style_sheet_location = |
1595 user_style_sheet_watcher->user_style_sheet(); | 1595 user_style_sheet_watcher->user_style_sheet(); |
1596 } else { | 1596 } else { |
1597 web_prefs->user_style_sheet_enabled = false; | 1597 web_prefs->user_style_sheet_enabled = false; |
1598 } | 1598 } |
1599 | 1599 |
1600 web_prefs->asynchronous_spell_checking_enabled = | 1600 web_prefs->asynchronous_spell_checking_enabled = |
1601 #if defined(OS_MACOSX) | 1601 #if defined(OS_MACOSX) |
1602 // TODO(hbono): Bug 107371: Implement asynchronous spellchecking API for | 1602 // TODO(groby): Bug 107371: Implement asynchronous spellchecking API for |
1603 // Mac so it uses NSSpellChecker in the background. | 1603 // Mac so it uses NSSpellChecker in the background. |
1604 false; | 1604 false; |
1605 #else | 1605 #else |
1606 true; | 1606 true; |
1607 #endif | 1607 #endif |
1608 web_prefs->unified_textchecker_enabled = | 1608 web_prefs->unified_textchecker_enabled = |
1609 web_prefs->asynchronous_spell_checking_enabled; | 1609 web_prefs->asynchronous_spell_checking_enabled; |
1610 | 1610 |
1611 web_prefs->uses_universal_detector = | 1611 web_prefs->uses_universal_detector = |
1612 prefs->GetBoolean(prefs::kWebKitUsesUniversalDetector); | 1612 prefs->GetBoolean(prefs::kWebKitUsesUniversalDetector); |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1908 io_thread_application_locale_ = locale; | 1908 io_thread_application_locale_ = locale; |
1909 } | 1909 } |
1910 | 1910 |
1911 void ChromeContentBrowserClient::SetApplicationLocaleOnIOThread( | 1911 void ChromeContentBrowserClient::SetApplicationLocaleOnIOThread( |
1912 const std::string& locale) { | 1912 const std::string& locale) { |
1913 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 1913 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
1914 io_thread_application_locale_ = locale; | 1914 io_thread_application_locale_ = locale; |
1915 } | 1915 } |
1916 | 1916 |
1917 } // namespace chrome | 1917 } // namespace chrome |
OLD | NEW |