mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Update to Chromium revision 105051.
- Enable use of clang compiler on Mac. - Add CefSettings.threaded_compositing_enabled option. - Begin converting NewRunnable usage to base::Bind. - Avoid assertion when an empty message is passed to OnConsoleMessage(). - Add an "--allow-partial" option to the make_distrib tool. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@316 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -21,6 +21,7 @@
|
||||
#include "ui/base/ui_base_paths.h"
|
||||
#include "ui/gfx/gl/gl_implementation.h"
|
||||
#include "webkit/extensions/v8/gc_extension.h"
|
||||
#include "webkit/glue/user_agent.h"
|
||||
#include "webkit/glue/webkit_glue.h"
|
||||
#include "webkit/plugins/npapi/plugin_list.h"
|
||||
|
||||
@ -133,8 +134,22 @@ void CefProcessUIThread::Init() {
|
||||
// Create the storage context object.
|
||||
_Context->set_storage_context(new DOMStorageContext(_Context->cache_path()));
|
||||
|
||||
if (settings.user_agent.length > 0)
|
||||
webkit_glue::SetUserAgent(CefString(&settings.user_agent));
|
||||
if (settings.user_agent.length > 0) {
|
||||
webkit_glue::SetUserAgent(CefString(&settings.user_agent), false);
|
||||
} else {
|
||||
std::string product_version;
|
||||
|
||||
if (settings.product_version.length > 0) {
|
||||
product_version = CefString(&settings.product_version).ToString();
|
||||
} else {
|
||||
// Keep synchronized with the newest Dev Channel release announced at
|
||||
// http://googlechromereleases.blogspot.com/
|
||||
product_version = "Chrome/16.0.904.0";
|
||||
}
|
||||
|
||||
webkit_glue::SetUserAgent(
|
||||
webkit_glue::BuildUserAgentFromProduct(product_version), false);
|
||||
}
|
||||
|
||||
if (settings.extra_plugin_paths) {
|
||||
cef_string_t str;
|
||||
|
Reference in New Issue
Block a user