Index: chrome/common/extensions/switch_utils.cc |
diff --git a/chrome/common/extensions/switch_utils.cc b/chrome/common/extensions/switch_utils.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7c3efcf9bd617f1964639f94ad5a3e194d5c0231 |
--- /dev/null |
+++ b/chrome/common/extensions/switch_utils.cc |
@@ -0,0 +1,21 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "chrome/common/extensions/switch_utils.h" |
+ |
+#include "base/command_line.h" |
+#include "chrome/common/chrome_switches.h" |
+ |
+namespace extensions { |
+ |
+namespace switch_utils { |
+ |
+bool IsOffStoreInstallEnabled() { |
+ return !CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kDisableOffStoreExtensionInstall); |
+} |
+ |
+} // switch_utils |
+ |
+} // extensions |