[cros] Allow media streaming for OOBE WebUI.


BUG=122764
TEST=Manual with --enable-html5-camera


Review URL: https://chromiumcodereview.appspot.com/10693027

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144899 0039d316-1c4b-4281-b951-d872f2087c98
void WebUILoginView::LoadURL(const GURL & url) {
  webui_login_->LoadInitialURL(url);
  webui_login_->RequestFocus();

  CommandLine* command_line = CommandLine::ForCurrentProcess();
  if (BaseLoginDisplayHost::default_host() &&
      command_line->HasSwitch(switches::kEnableNewOobe)) {
    SkBitmap background;
    background.setConfig(SkBitmap::kARGB_8888_Config, 1, 1);
    background.allocPixels();
    background.eraseARGB(0x00, 0x00, 0x00, 0x00);
    content::RenderViewHost* host =
        tab_contents_->web_contents()->GetRenderViewHost();
    host->GetView()->SetBackground(background);
  }
}

void WebUILoginView::LoadURL(const GURL & url) {
  webui_login_->LoadInitialURL(url);
  webui_login_->RequestFocus();

  CommandLine* command_line = CommandLine::ForCurrentProcess();
  if (BaseLoginDisplayHost::default_host() &&
      command_line->HasSwitch(switches::kEnableNewOobe)) {
    SkBitmap background;
    background.setConfig(SkBitmap::kARGB_8888_Config, 1, 1);
    background.allocPixels();
    background.eraseARGB(0x00, 0x00, 0x00, 0x00);
    content::RenderViewHost* host =
        tab_contents_->web_contents()->GetRenderViewHost();
    host->GetView()->SetBackground(background);
  }
}
