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

Unified Diff: chrome/browser/browser_init.cc

Issue 149619: Various minor extension fixes (Closed)
Patch Set: One more test Created 11 years, 5 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
Index: chrome/browser/browser_init.cc
diff --git a/chrome/browser/browser_init.cc b/chrome/browser/browser_init.cc
index fdb85eaac972d4d384ee302da99c2984ce68dacc..cabf1423052d438915ea03e0e787c6a5bf23df2a 100644
--- a/chrome/browser/browser_init.cc
+++ b/chrome/browser/browser_init.cc
@@ -697,16 +697,6 @@ bool BrowserInit::ProcessCmdLineImpl(const CommandLine& command_line,
static_cast<size_t>(expected_tab_count));
}
- // Extension should be loaded from path which is specified by flag
- // |kLoadExtension| once and only when the browser process is starting up.
- if (command_line.HasSwitch(switches::kLoadExtension)) {
- std::wstring path_string =
- command_line.GetSwitchValue(switches::kLoadExtension);
- FilePath path = FilePath::FromWStringHack(path_string);
- profile->GetExtensionsService()->LoadExtension(path);
- profile->GetUserScriptMaster()->AddWatchedPath(path);
- }
-
if (command_line.HasSwitch(switches::kPackExtension)) {
// Input Paths.
FilePath src_dir = FilePath::FromWStringHack(command_line.GetSwitchValue(

Powered by Google App Engine
This is Rietveld 408576698