| Index: chrome/browser/dom_ui/keyboard_ui.cc
|
| ===================================================================
|
| --- chrome/browser/dom_ui/keyboard_ui.cc (revision 74293)
|
| +++ chrome/browser/dom_ui/keyboard_ui.cc (working copy)
|
| @@ -9,7 +9,6 @@
|
| #include "base/string_piece.h"
|
| #include "chrome/browser/browser_thread.h"
|
| #include "chrome/browser/dom_ui/chrome_url_data_manager.h"
|
| -#include "chrome/browser/profiles/profile.h"
|
| #include "chrome/common/url_constants.h"
|
| #include "grit/browser_resources.h"
|
| #include "ui/base/resource/resource_bundle.h"
|
| @@ -20,7 +19,12 @@
|
| KeyboardUI::KeyboardUI(TabContents* contents)
|
| : DOMUI(contents) {
|
| KeyboardHTMLSource* html_source = new KeyboardHTMLSource();
|
| - contents->profile()->GetChromeURLDataManager()->AddDataSource(html_source);
|
| + BrowserThread::PostTask(
|
| + BrowserThread::IO, FROM_HERE,
|
| + NewRunnableMethod(
|
| + ChromeURLDataManager::GetInstance(),
|
| + &ChromeURLDataManager::AddDataSource,
|
| + make_scoped_refptr(html_source)));
|
| }
|
|
|
| KeyboardUI::~KeyboardUI() {
|
|
|