function localizeName() {
    // See things through all the way to a successful install.
    listenOnce(chrome.management.onInstalled, function(info) {
      assertEq(info.id, localizedId);
    });

    var manifest = getManifest('localized_extension/manifest.json');
    var messages = getManifest('localized_extension/_locales/fr/messages.json');
    // Begin installing.
    chrome.webstorePrivate.beginInstallWithManifest3(
      { 'id':localizedId, 'manifest': manifest, 'localizedName': 'Le Title',
        'locale': 'fr' },
      callbackPass(function(result) {
        assertEq(result, "");
        chrome.webstorePrivate.completeInstall(localizedId, callbackPass());
    }));
  }
// This tests an install passing a localized name.
This tests an install passing a localized name.
This tests an install passing a localized name .
function localizeName() {
    listenOnce(chrome.management.onInstalled, function(info) {
      assertEq(info.id, localizedId);
    });
    var manifest = getManifest('localized_extension/manifest.json');
    var messages = getManifest('localized_extension/_locales/fr/messages.json');
    chrome.webstorePrivate.beginInstallWithManifest3(
      { 'id':localizedId, 'manifest': manifest, 'localizedName': 'Le Title',
        'locale': 'fr' },
      callbackPass(function(result) {
        assertEq(result, "");
        chrome.webstorePrivate.completeInstall(localizedId, callbackPass());
    }));
  }
function localizeName ( ) { listenOnce ( chrome . management . onInstalled , function ( info ) { assertEq ( info . id , localizedId ) ; } ) ; var manifest = getManifest ( 'localized_extension/manifest.json' ) ; var messages = getManifest ( 'localized_extension/_locales/fr/messages.json' ) ; chrome . webstorePrivate . beginInstallWithManifest3 ( { 'id' : localizedId , 'manifest' : manifest , 'localizedName' : 'Le Title' , 'locale' : 'fr' } , callbackPass ( function ( result ) { assertEq ( result , "" ) ; chrome . webstorePrivate . completeInstall ( localizedId , callbackPass ( ) ) ; } ) ) ; }
This tests an install passing a localized name.
This tests an install passing a localized name .
// See things through all the way to a successful install. // Begin installing.