Index: chrome/browser/ui/webui/uber/uber_ui.cc |
diff --git a/chrome/browser/ui/webui/uber/uber_ui.cc b/chrome/browser/ui/webui/uber/uber_ui.cc |
index 2c68102033ff5277c2596cb033bed93209673989..a55842d66b65cf3c1f1fe72e0899342b8c409416 100644 |
--- a/chrome/browser/ui/webui/uber/uber_ui.cc |
+++ b/chrome/browser/ui/webui/uber/uber_ui.cc |
@@ -210,14 +210,12 @@ void UberFrameUI::Observe(int type, const content::NotificationSource& source, |
case chrome::NOTIFICATION_EXTENSION_LOADED: |
case chrome::NOTIFICATION_EXTENSION_UNLOADED: { |
Profile* profile = Profile::FromWebUI(web_ui()); |
- bool overridesHistory = HasExtensionType(profile, |
- chrome::kChromeUIHistoryHost); |
- scoped_ptr<Value> controlsValue( |
- Value::CreateStringValue(chrome::kChromeUIHistoryHost)); |
- scoped_ptr<Value> overrideValue( |
- Value::CreateStringValue(overridesHistory ? "yes" : "no")); |
+ bool overrides_history = |
+ HasExtensionType(profile, chrome::kChromeUIHistoryHost); |
web_ui()->CallJavascriptFunction( |
- "uber_frame.setNavigationOverride", *controlsValue, *overrideValue); |
+ "uber_frame.setNavigationOverride", |
+ base::StringValue(chrome::kChromeUIHistoryHost), |
+ base::StringValue(overrides_history ? "yes" : "no")); |
break; |
} |
default: |