Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2859)

Unified Diff: chrome/test/data/extensions/api_test/webstore_private/common.js

Issue 6992047: Change the web store private install API to accept a localized extension name. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased, removed test files I added in separate CL Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/api_test/webstore_private/common.js
diff --git a/chrome/test/data/extensions/api_test/webstore_private/common.js b/chrome/test/data/extensions/api_test/webstore_private/common.js
index 8b0deaf139bba70a573cca935b5149b5792cf939..8972e67dd1b7b58c63e3789b6c831e616199446c 100644
--- a/chrome/test/data/extensions/api_test/webstore_private/common.js
+++ b/chrome/test/data/extensions/api_test/webstore_private/common.js
@@ -49,13 +49,15 @@ function getIconData(callback) {
var cachedManifest = null;
// This returns the string contents of the extension's manifest file.
-function getManifest() {
+function getManifest(alternativePath) {
if (cachedManifest)
return cachedManifest;
// Do a synchronous XHR to get the manifest.
var xhr = new XMLHttpRequest();
- xhr.open("GET", "extension/manifest.json", false);
+ xhr.open("GET",
+ alternativePath ? alternativePath : "extension/manifest.json",
+ false);
xhr.send(null);
return xhr.responseText;
}

Powered by Google App Engine
This is Rietveld 408576698