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