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 2397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2408 } | 2408 } |
2409 | 2409 |
2410 void ChromeContentBrowserClient::UpdateInspectorSetting( | 2410 void ChromeContentBrowserClient::UpdateInspectorSetting( |
2411 RenderViewHost* rvh, const std::string& key, const std::string& value) { | 2411 RenderViewHost* rvh, const std::string& key, const std::string& value) { |
2412 content::BrowserContext* browser_context = | 2412 content::BrowserContext* browser_context = |
2413 rvh->GetProcess()->GetBrowserContext(); | 2413 rvh->GetProcess()->GetBrowserContext(); |
2414 DictionaryPrefUpdate update( | 2414 DictionaryPrefUpdate update( |
2415 Profile::FromBrowserContext(browser_context)->GetPrefs(), | 2415 Profile::FromBrowserContext(browser_context)->GetPrefs(), |
2416 prefs::kWebKitInspectorSettings); | 2416 prefs::kWebKitInspectorSettings); |
2417 base::DictionaryValue* inspector_settings = update.Get(); | 2417 base::DictionaryValue* inspector_settings = update.Get(); |
2418 inspector_settings->SetWithoutPathExpansion( | 2418 inspector_settings->SetWithoutPathExpansion(key, |
2419 key, base::Value::CreateStringValue(value)); | 2419 new base::StringValue(value)); |
2420 } | 2420 } |
2421 | 2421 |
2422 void ChromeContentBrowserClient::BrowserURLHandlerCreated( | 2422 void ChromeContentBrowserClient::BrowserURLHandlerCreated( |
2423 BrowserURLHandler* handler) { | 2423 BrowserURLHandler* handler) { |
2424 // Add the default URL handlers. | 2424 // Add the default URL handlers. |
2425 handler->AddHandlerPair(&ExtensionWebUI::HandleChromeURLOverride, | 2425 handler->AddHandlerPair(&ExtensionWebUI::HandleChromeURLOverride, |
2426 BrowserURLHandler::null_handler()); | 2426 BrowserURLHandler::null_handler()); |
2427 handler->AddHandlerPair(BrowserURLHandler::null_handler(), | 2427 handler->AddHandlerPair(BrowserURLHandler::null_handler(), |
2428 &ExtensionWebUI::HandleChromeURLOverrideReverse); | 2428 &ExtensionWebUI::HandleChromeURLOverrideReverse); |
2429 | 2429 |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2801 switches::kDisableWebRtcEncryption, | 2801 switches::kDisableWebRtcEncryption, |
2802 }; | 2802 }; |
2803 to_command_line->CopySwitchesFrom(from_command_line, | 2803 to_command_line->CopySwitchesFrom(from_command_line, |
2804 kWebRtcDevSwitchNames, | 2804 kWebRtcDevSwitchNames, |
2805 arraysize(kWebRtcDevSwitchNames)); | 2805 arraysize(kWebRtcDevSwitchNames)); |
2806 } | 2806 } |
2807 } | 2807 } |
2808 #endif // defined(ENABLE_WEBRTC) | 2808 #endif // defined(ENABLE_WEBRTC) |
2809 | 2809 |
2810 } // namespace chrome | 2810 } // namespace chrome |
OLD | NEW |