| 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 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 #endif | 501 #endif |
| 502 | 502 |
| 503 permissions_policy_delegate_.reset( | 503 permissions_policy_delegate_.reset( |
| 504 new extensions::BrowserPermissionsPolicyDelegate()); | 504 new extensions::BrowserPermissionsPolicyDelegate()); |
| 505 } | 505 } |
| 506 | 506 |
| 507 ChromeContentBrowserClient::~ChromeContentBrowserClient() { | 507 ChromeContentBrowserClient::~ChromeContentBrowserClient() { |
| 508 } | 508 } |
| 509 | 509 |
| 510 // static | 510 // static |
| 511 void ChromeContentBrowserClient::RegisterUserPrefs( | 511 void ChromeContentBrowserClient::RegisterProfilePrefs( |
| 512 user_prefs::PrefRegistrySyncable* registry) { | 512 user_prefs::PrefRegistrySyncable* registry) { |
| 513 registry->RegisterBooleanPref( | 513 registry->RegisterBooleanPref( |
| 514 prefs::kDisable3DAPIs, | 514 prefs::kDisable3DAPIs, |
| 515 false, | 515 false, |
| 516 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 516 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 517 registry->RegisterBooleanPref( | 517 registry->RegisterBooleanPref( |
| 518 prefs::kEnableHyperlinkAuditing, | 518 prefs::kEnableHyperlinkAuditing, |
| 519 true, | 519 true, |
| 520 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 520 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 521 registry->RegisterBooleanPref( | 521 registry->RegisterBooleanPref( |
| (...skipping 1905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2427 #if defined(USE_NSS) | 2427 #if defined(USE_NSS) |
| 2428 crypto::CryptoModuleBlockingPasswordDelegate* | 2428 crypto::CryptoModuleBlockingPasswordDelegate* |
| 2429 ChromeContentBrowserClient::GetCryptoPasswordDelegate( | 2429 ChromeContentBrowserClient::GetCryptoPasswordDelegate( |
| 2430 const GURL& url) { | 2430 const GURL& url) { |
| 2431 return chrome::NewCryptoModuleBlockingDialogDelegate( | 2431 return chrome::NewCryptoModuleBlockingDialogDelegate( |
| 2432 chrome::kCryptoModulePasswordKeygen, url.host()); | 2432 chrome::kCryptoModulePasswordKeygen, url.host()); |
| 2433 } | 2433 } |
| 2434 #endif | 2434 #endif |
| 2435 | 2435 |
| 2436 } // namespace chrome | 2436 } // namespace chrome |
| OLD | NEW |