Code: void BluetoothOptionsHandler::GenerateFakePairing(
    const std::string& name,
    const std::string& address,
    const std::string& icon,
     const std::string& pairing) {
  DictionaryValue device;
  device.SetString("name", name);
  device.SetString("address", address);
  device.SetString("icon", icon);
  device.SetBoolean("paired", false);
  device.SetBoolean("connected", false);
  DictionaryValue op;
  op.SetString("pairing", pairing);
  if (pairing.compare("bluetoothEnterPasskey") != 0)
    op.SetInteger("passkey", 12345);
  if (pairing.compare("bluetoothRemotePasskey") == 0)
    op.SetInteger("entered", 2);
  web_ui_->CallJavascriptFunction(
      "options.SystemOptions.connectBluetoothDevice", device, op);
 }

Vulnerability Type: DoS Overflow 
CWE ID: CWE-119
Summary: Google Chrome before 17.0.963.46 does not properly handle PDF FAX images, which allows remote attackers to cause a denial of service (out-of-bounds read) via unspecified vectors.
Commit Message: Implement methods for pairing of bluetooth devices.

BUG=chromium:100392,chromium:102139
TEST=

Review URL: http://codereview.chromium.org/8495018

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109094 0039d316-1c4b-4281-b951-d872f2087c98