| Index: chrome_frame/chrome_frame_activex.cc
|
| ===================================================================
|
| --- chrome_frame/chrome_frame_activex.cc (revision 71338)
|
| +++ chrome_frame/chrome_frame_activex.cc (working copy)
|
| @@ -691,5 +691,12 @@
|
|
|
| web_browser2->PutProperty(base::win::ScopedBstr(bho_class_id_as_string),
|
| base::win::ScopedVariant(bho));
|
| - return S_OK;
|
| +
|
| + hr = UrlMkSetSessionOption(URLMON_OPTION_USERAGENT_REFRESH, NULL, 0, 0);
|
| + if (FAILED(hr)) {
|
| + DLOG(ERROR) << "Failed to refresh user agent string from registry. "
|
| + << "UrlMkSetSessionOption returned "
|
| + << base::StringPrintf("0x%08x", hr);
|
| + }
|
| + return hr;
|
| }
|
|
|