| Index: chrome/browser/tab_contents/render_view_host_delegate_helper.cc
|
| diff --git a/chrome/browser/tab_contents/render_view_host_delegate_helper.cc b/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
|
| index 6d76c21c93bdd4b4ef9428d36dd9c3e7e9b5383c..9d1d815e057fa9918043102118b776e8309a42ef 100644
|
| --- a/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
|
| +++ b/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
|
| @@ -230,7 +230,7 @@ TabContents* RenderViewHostDelegateViewHelper::CreateNewWindowFromTabContents(
|
| const ViewHostMsg_CreateWindow_Params& params) {
|
| TabContents* new_contents = CreateNewWindow(
|
| route_id,
|
| - tab_contents->profile(),
|
| + static_cast<Profile*>(tab_contents->browser_context()),
|
| tab_contents->GetSiteInstance(),
|
| tab_contents->GetWebUITypeForCurrentState(),
|
| tab_contents,
|
| @@ -295,7 +295,8 @@ RenderWidgetHostView*
|
|
|
| // static
|
| WebPreferences RenderViewHostDelegateHelper::GetWebkitPrefs(
|
| - Profile* profile, bool is_web_ui) {
|
| + content::BrowserContext* browser_context, bool is_web_ui) {
|
| + Profile* profile = static_cast<Profile*>(browser_context);
|
| PrefService* prefs = profile->GetPrefs();
|
| WebPreferences web_prefs;
|
|
|
| @@ -473,14 +474,19 @@ WebPreferences RenderViewHostDelegateHelper::GetWebkitPrefs(
|
| }
|
|
|
| void RenderViewHostDelegateHelper::UpdateInspectorSetting(
|
| - Profile* profile, const std::string& key, const std::string& value) {
|
| - DictionaryPrefUpdate update(profile->GetPrefs(),
|
| - prefs::kWebKitInspectorSettings);
|
| + content::BrowserContext* browser_context,
|
| + const std::string& key,
|
| + const std::string& value) {
|
| + DictionaryPrefUpdate update(
|
| + static_cast<Profile*>(browser_context)->GetPrefs(),
|
| + prefs::kWebKitInspectorSettings);
|
| DictionaryValue* inspector_settings = update.Get();
|
| inspector_settings->SetWithoutPathExpansion(key,
|
| Value::CreateStringValue(value));
|
| }
|
|
|
| -void RenderViewHostDelegateHelper::ClearInspectorSettings(Profile* profile) {
|
| - profile->GetPrefs()->ClearPref(prefs::kWebKitInspectorSettings);
|
| +void RenderViewHostDelegateHelper::ClearInspectorSettings(
|
| + content::BrowserContext* browser_context) {
|
| + static_cast<Profile*>(browser_context)->GetPrefs()->
|
| + ClearPref(prefs::kWebKitInspectorSettings);
|
| }
|
|
|