Commit 2f99c553 authored by scottmg@chromium.org's avatar scottmg@chromium.org

initialize Ole so that RegisterDragDrop doesn't fail on Windows

Fixes all AutofillDialogControllerTest which were failing on Windows.

R=xhwang@chromium.org,jam@chromium.org
BUG=227221

Review URL: https://codereview.chromium.org/13533026

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192643 0039d316-1c4b-4281-b951-d872f2087c98
parent f2bb320d
......@@ -25,6 +25,10 @@
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#if defined(OS_WIN)
#include "ui/base/win/scoped_ole_initializer.h"
#endif
using testing::_;
namespace autofill {
......@@ -257,6 +261,11 @@ class AutofillDialogControllerTest : public testing::Test {
void FinishedCallback(const FormStructure* form_structure,
const std::string& google_transaction_id) {}
#if defined(OS_WIN)
// http://crbug.com/227221
ui::ScopedOleInitializer ole_initializer_;
#endif
// A bunch of threads are necessary for classes like TestWebContents and
// URLRequestContextGetter not to fall over.
MessageLoopForUI loop_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment