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

Unified Diff: chrome/common/extensions/switch_utils.cc

Issue 10266015: Add the --disable-off-store-extension-install switch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixy fix Created 8 years, 8 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
« no previous file with comments | « chrome/common/extensions/switch_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « chrome/common/extensions/switch_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698