This repository has been archived by the owner on Sep 25, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the --disable-off-store-extension-install switch.
Subsequent changes will add a first-class UI in chrome://extensions/ to meet this use case. BUG=55584 Review URL: https://chromiumcodereview.appspot.com/10266015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134980 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
aa@chromium.org
committed
May 2, 2012
1 parent
aea8089
commit 4766606
Showing
9 changed files
with
75 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/extension_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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// 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. | ||
|
||
#ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_SWITCH_UTILS_H_ | ||
#define CHROME_COMMON_EXTENSIONS_EXTENSION_SWITCH_UTILS_H_ | ||
#pragma once | ||
|
||
namespace extensions { | ||
|
||
namespace switch_utils { | ||
|
||
bool IsOffStoreInstallEnabled(); | ||
|
||
} // switch_utils | ||
|
||
} // extensions | ||
|
||
#endif // CHROME_COMMON_EXTENSIONS_EXTENSION_SWITCH_UTILS_H_ |