Translate: browser test for Chrome Translate in an isolated world
An browser test which cover whole translate process was disabled tentatively.
This is because now Translate scripts runs inside a v8 isolated world and
it make impossible to run with local testing server.
This change introduce a flag to change the allowed server for XHR, and
make the test enabled again.
Note that this flag is warned by infobar when it is enabled.
BUG=268785
TEST=browser_tests --gtest_filter='Translate*.*'
[email protected]
Review URL: https://chromiumcodereview.appspot.com/14180010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215912 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index ec79ace..22947f0 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -1473,6 +1473,7 @@
switches::kRecordMode,
switches::kSilentDumpOnDCHECK,
switches::kSpdyProxyAuthOrigin,
+ switches::kTranslateSecurityOrigin,
switches::kWhitelistedExtensionID,
};