} else if (TYPE_IS("tizen://deleteAllCookies")) {
atom::Browser::Get()->ClearCookie();
extension_server->SendWrtMessage(msg_type, msg_id, "success");
+ } else if (TYPE_IS("tizen://changeUA")) {
+ const content::NavigationController&
+ controller = web_contents()->GetController();
+ bool override = msg_value && strlen(msg_value);
+ for (int i = 0; i < controller.GetEntryCount(); ++i)
+ controller.GetEntryAtIndex(i)->SetIsOverridingUserAgent(override);
+
+ if (override)
+ web_contents()->SetUserAgentOverride(msg_value);
+ else
+ web_contents()->SetUserAgentOverride(std::string());
+
+ extension_server->SendWrtMessage(msg_type, msg_id, "success");
}
eina_stringshare_del(msg_ref_id);
eina_stringshare_del(msg_id);