Disable RegisterProtocolHandler on Linux.

The OS-level registration isn't implemented on Linux, and so every time the
browser starts it will act as though another program has been registered to
handle the protocols it knows about and deregister them all internally.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88246 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/build/common.gypi b/build/common.gypi
index 387cd78..0b78860 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -129,9 +129,6 @@
       # currently only works on Linux.
       'use_third_party_translations%': 0,
 
-      # Enable navigator.registerProtocolHandler and supporting UI.
-      'enable_register_protocol_handler%': 1,
-
       # Remoting compilation is enabled by default. Set to 0 to disable.
       'remoting%': 1,
 
@@ -201,6 +198,15 @@
         }, {
           'file_manager_extension%': 0,
         }],
+
+        # Enable navigator.registerProtocolHandler and supporting UI.
+        # We disable on Linux because the OS-level component of RPH isn't
+        # implemented.
+        ['OS=="linux"', {
+          'enable_register_protocol_handler%': 0,
+        }, {
+          'enable_register_protocol_handler%': 1,
+        }],
       ],
     },