| Index: chrome/browser/ui/webui/web_ui_browsertest.cc
|
| ===================================================================
|
| --- chrome/browser/ui/webui/web_ui_browsertest.cc (revision 117388)
|
| +++ chrome/browser/ui/webui/web_ui_browsertest.cc (working copy)
|
| @@ -24,6 +24,7 @@
|
| #include "chrome/test/base/ui_test_utils.h"
|
| #include "content/public/browser/navigation_controller.h"
|
| #include "content/public/browser/web_contents.h"
|
| +#include "content/public/browser/web_ui_controller.h"
|
| #include "content/public/browser/web_ui_message_handler.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
| #include "testing/gtest/include/gtest/gtest-spi.h"
|
| @@ -243,7 +244,8 @@
|
|
|
| // Returns a new WebUI
|
| WebUI* NewWebUI(WebContents* web_contents, const GURL& url) OVERRIDE {
|
| - return new WebUI(web_contents);
|
| + static content::WebUIController temp_controller;
|
| + return new WebUI(web_contents, &temp_controller);
|
| }
|
| };
|
|
|
|
|