| Index: content/browser/media/media_internals_handler.cc
|
| ===================================================================
|
| --- content/browser/media/media_internals_handler.cc (revision 179909)
|
| +++ content/browser/media/media_internals_handler.cc (working copy)
|
| @@ -2,19 +2,18 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "chrome/browser/ui/webui/media/media_internals_handler.h"
|
| +#include "content/browser/media/media_internals_handler.h"
|
|
|
| #include "base/bind.h"
|
| #include "base/bind_helpers.h"
|
| #include "base/values.h"
|
| -#include "chrome/browser/browser_process.h"
|
| -#include "chrome/browser/ui/webui/media/media_internals_proxy.h"
|
| +#include "content/browser//media/media_internals_proxy.h"
|
| #include "content/public/browser/browser_thread.h"
|
| #include "content/public/browser/render_view_host.h"
|
| #include "content/public/browser/web_contents.h"
|
| #include "content/public/browser/web_ui.h"
|
|
|
| -using content::BrowserThread;
|
| +namespace content {
|
|
|
| MediaInternalsMessageHandler::MediaInternalsMessageHandler()
|
| : proxy_(new MediaInternalsProxy()) {}
|
| @@ -38,8 +37,9 @@
|
|
|
| void MediaInternalsMessageHandler::OnUpdate(const string16& update) {
|
| // Don't try to execute JavaScript in a RenderView that no longer exists.
|
| - content::RenderViewHost* host =
|
| - web_ui()->GetWebContents()->GetRenderViewHost();
|
| + RenderViewHost* host = web_ui()->GetWebContents()->GetRenderViewHost();
|
| if (host)
|
| host->ExecuteJavascriptInWebFrame(string16(), update);
|
| }
|
| +
|
| +} // namespace content
|
|
|