Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(679)

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 8403024: Set extension-related webkit preferences in a common location. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/app/breakpad_mac.h" 8 #include "chrome/app/breakpad_mac.h"
9 #include "chrome/browser/browser_about_handler.h" 9 #include "chrome/browser/browser_about_handler.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 AccessTokenStore* ChromeContentBrowserClient::CreateAccessTokenStore() { 883 AccessTokenStore* ChromeContentBrowserClient::CreateAccessTokenStore() {
884 return new ChromeAccessTokenStore(); 884 return new ChromeAccessTokenStore();
885 } 885 }
886 886
887 bool ChromeContentBrowserClient::IsFastShutdownPossible() { 887 bool ChromeContentBrowserClient::IsFastShutdownPossible() {
888 const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess(); 888 const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess();
889 return !browser_command_line.HasSwitch(switches::kChromeFrame); 889 return !browser_command_line.HasSwitch(switches::kChromeFrame);
890 } 890 }
891 891
892 WebPreferences ChromeContentBrowserClient::GetWebkitPrefs( 892 WebPreferences ChromeContentBrowserClient::GetWebkitPrefs(
893 content::BrowserContext* browser_context, bool is_web_ui) { 893 RenderViewHost* rvh, bool is_web_ui) {
894 return RenderViewHostDelegateHelper::GetWebkitPrefs(browser_context, 894 return RenderViewHostDelegateHelper::GetWebkitPrefs(rvh, is_web_ui);
895 is_web_ui);
896 } 895 }
897 896
898 void ChromeContentBrowserClient::UpdateInspectorSetting( 897 void ChromeContentBrowserClient::UpdateInspectorSetting(
899 RenderViewHost* rvh, const std::string& key, const std::string& value) { 898 RenderViewHost* rvh, const std::string& key, const std::string& value) {
900 RenderViewHostDelegateHelper::UpdateInspectorSetting( 899 RenderViewHostDelegateHelper::UpdateInspectorSetting(
901 rvh->process()->browser_context(), key, value); 900 rvh->process()->browser_context(), key, value);
902 } 901 }
903 902
904 void ChromeContentBrowserClient::ClearInspectorSettings(RenderViewHost* rvh) { 903 void ChromeContentBrowserClient::ClearInspectorSettings(RenderViewHost* rvh) {
905 RenderViewHostDelegateHelper::ClearInspectorSettings( 904 RenderViewHostDelegateHelper::ClearInspectorSettings(
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 #if defined(USE_NSS) 987 #if defined(USE_NSS)
989 crypto::CryptoModuleBlockingPasswordDelegate* 988 crypto::CryptoModuleBlockingPasswordDelegate*
990 ChromeContentBrowserClient::GetCryptoPasswordDelegate( 989 ChromeContentBrowserClient::GetCryptoPasswordDelegate(
991 const GURL& url) { 990 const GURL& url) {
992 return browser::NewCryptoModuleBlockingDialogDelegate( 991 return browser::NewCryptoModuleBlockingDialogDelegate(
993 browser::kCryptoModulePasswordKeygen, url.host()); 992 browser::kCryptoModulePasswordKeygen, url.host());
994 } 993 }
995 #endif 994 #endif
996 995
997 } // namespace chrome 996 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698