Add support for *.git.corp.google.com domains

Change-Id: I1a65c57c1520c95d102661dc247b9155c4497d23
diff --git a/background.js b/background.js
index 2e5080b..f547edd 100644
--- a/background.js
+++ b/background.js
@@ -62,7 +62,10 @@
           conditions: [
             new chrome.declarativeContent.PageStateMatcher({
               pageUrl: { hostSuffix: '-review.googlesource.com' },
-            })
+            }),
+            new chrome.declarativeContent.PageStateMatcher({
+              pageUrl: { hostSuffix: '-review.git.corp.google.com' },
+            }),
           ],
           // And shows the extension's page action.
           actions: [ new chrome.declarativeContent.ShowPageAction() ]
@@ -95,7 +98,13 @@
         tabIDToReload = null;
       }
     },
-    {urls: ['*://*.googlesource.com/*']});
+    {
+      urls: [
+        '*://*.googlesource.com/*',
+        "*://*.git.corp.google.com/*",
+      ]
+    }
+  );
 
   chrome.pageAction.onClicked.addListener(function(tab) {
     var cookieID = {
@@ -108,7 +117,7 @@
         chrome.cookies.remove(cookieID, function() {
           // The GWT UI does not handle PolyGerrit URL redirection.
           chrome.tabs.update(tab.id, {
-            url: tab.url.replace('googlesource.com/', 'googlesource.com/#/')
+            url: tab.url.replace('.com/', '.com/#/')
           }, function(tab) {
             tabIDToReload = tab.id;
           });
diff --git a/manifest.json b/manifest.json
index 1fc4d20..ee12272 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,11 +1,12 @@
 {
   "manifest_version": 2,
-
   "name": "Gerrit UI Switcher",
   "description": "Easily switch between the current Gerrit UI and the new PolyGerrit UI",
-  "version": "0.4",
+  "version": "0.4.1",
   "background": {
-    "scripts": ["background.js"]
+    "scripts": [
+      "background.js"
+    ]
   },
   "page_action": {
     "default_icon": {
@@ -16,7 +17,10 @@
   },
   "content_scripts": [
     {
-      "matches": ["*://*.googlesource.com/*"],
+      "matches": [
+        "*://*.googlesource.com/*",
+        "*://*.git.corp.google.com/*"
+      ],
       "js": [
         "content.js"
       ]
@@ -27,7 +31,8 @@
     "declarativeContent",
     "tabs",
     "webRequest",
-    "*://*.googlesource.com/*"
+    "*://*.googlesource.com/*",
+    "*://*.git.corp.google.com/*"
   ],
   "content_security_policy": "script-src 'self' https://ssl.google-analytics.com; object-src 'self'"
 }