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

Side by Side Diff: chrome/browser/extensions/extension_system_impl.cc

Issue 215623002: Enable Error Console for ADT and <= Dev Channel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/extension_system_impl.h" 5 #include "chrome/browser/extensions/extension_system_impl.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 extension_service_->Init(); 209 extension_service_->Init();
210 210
211 // Make the chrome://extension-icon/ resource available. 211 // Make the chrome://extension-icon/ resource available.
212 content::URLDataSource::Add(profile_, new ExtensionIconSource(profile_)); 212 content::URLDataSource::Add(profile_, new ExtensionIconSource(profile_));
213 213
214 extension_warning_service_.reset(new ExtensionWarningService(profile_)); 214 extension_warning_service_.reset(new ExtensionWarningService(profile_));
215 extension_warning_badge_service_.reset( 215 extension_warning_badge_service_.reset(
216 new ExtensionWarningBadgeService(profile_)); 216 new ExtensionWarningBadgeService(profile_));
217 extension_warning_service_->AddObserver( 217 extension_warning_service_->AddObserver(
218 extension_warning_badge_service_.get()); 218 extension_warning_badge_service_.get());
219 error_console_.reset(new ErrorConsole(profile_, extension_service_.get())); 219 error_console_.reset(new ErrorConsole(profile_));
220 quota_service_.reset(new QuotaService); 220 quota_service_.reset(new QuotaService);
221 221
222 if (extensions_enabled) { 222 if (extensions_enabled) {
223 // Load any extensions specified with --load-extension. 223 // Load any extensions specified with --load-extension.
224 // TODO(yoz): Seems like this should move into ExtensionService::Init. 224 // TODO(yoz): Seems like this should move into ExtensionService::Init.
225 // But maybe it's no longer important. 225 // But maybe it's no longer important.
226 if (command_line->HasSwitch(switches::kLoadExtension)) { 226 if (command_line->HasSwitch(switches::kLoadExtension)) {
227 CommandLine::StringType path_list = command_line->GetSwitchValueNative( 227 CommandLine::StringType path_list = command_line->GetSwitchValueNative(
228 switches::kLoadExtension); 228 switches::kLoadExtension);
229 base::StringTokenizerT<CommandLine::StringType, 229 base::StringTokenizerT<CommandLine::StringType,
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( 434 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts(
435 const std::string& extension_id, 435 const std::string& extension_id,
436 const UnloadedExtensionInfo::Reason reason) { 436 const UnloadedExtensionInfo::Reason reason) {
437 BrowserThread::PostTask( 437 BrowserThread::PostTask(
438 BrowserThread::IO, 438 BrowserThread::IO,
439 FROM_HERE, 439 FROM_HERE,
440 base::Bind(&InfoMap::RemoveExtension, info_map(), extension_id, reason)); 440 base::Bind(&InfoMap::RemoveExtension, info_map(), extension_id, reason));
441 } 441 }
442 442
443 } // namespace extensions 443 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/error_console/error_console_unittest.cc ('k') | chrome/browser/extensions/test_extension_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698