| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_service.h" | 5 #include "chrome/browser/extensions/extension_service.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <iterator> | 8 #include <iterator> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 menu_manager_(profile), | 350 menu_manager_(profile), |
| 351 app_notification_manager_( | 351 app_notification_manager_( |
| 352 new extensions::AppNotificationManager(profile)), | 352 new extensions::AppNotificationManager(profile)), |
| 353 event_routers_initialized_(false), | 353 event_routers_initialized_(false), |
| 354 update_once_all_providers_are_ready_(false), | 354 update_once_all_providers_are_ready_(false), |
| 355 browser_terminating_(false), | 355 browser_terminating_(false), |
| 356 installs_delayed_(false), | 356 installs_delayed_(false), |
| 357 wipeout_is_active_(false), | 357 wipeout_is_active_(false), |
| 358 wipeout_count_(0u), | 358 wipeout_count_(0u), |
| 359 app_sync_bundle_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), | 359 app_sync_bundle_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), |
| 360 extension_sync_bundle_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), | 360 extension_sync_bundle_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) { |
| 361 app_shortcut_manager_(profile) { | |
| 362 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 361 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 363 | 362 |
| 364 // Figure out if extension installation should be enabled. | 363 // Figure out if extension installation should be enabled. |
| 365 if (command_line->HasSwitch(switches::kDisableExtensions) || | 364 if (command_line->HasSwitch(switches::kDisableExtensions) || |
| 366 profile->GetPrefs()->GetBoolean(prefs::kDisableExtensions)) { | 365 profile->GetPrefs()->GetBoolean(prefs::kDisableExtensions)) { |
| 367 extensions_enabled_ = false; | 366 extensions_enabled_ = false; |
| 368 } | 367 } |
| 369 | 368 |
| 370 registrar_.Add(this, chrome::NOTIFICATION_APP_TERMINATING, | 369 registrar_.Add(this, chrome::NOTIFICATION_APP_TERMINATING, |
| 371 content::NotificationService::AllBrowserContextsAndSources()); | 370 content::NotificationService::AllBrowserContextsAndSources()); |
| (...skipping 2748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3120 if (!extension) | 3119 if (!extension) |
| 3121 continue; | 3120 continue; |
| 3122 blacklisted_extensions_.Insert(extension); | 3121 blacklisted_extensions_.Insert(extension); |
| 3123 UnloadExtension(*it, extension_misc::UNLOAD_REASON_BLACKLIST); | 3122 UnloadExtension(*it, extension_misc::UNLOAD_REASON_BLACKLIST); |
| 3124 UMA_HISTOGRAM_ENUMERATION("ExtensionBlacklist.BlacklistInstalled", | 3123 UMA_HISTOGRAM_ENUMERATION("ExtensionBlacklist.BlacklistInstalled", |
| 3125 extension->location(), Manifest::NUM_LOCATIONS); | 3124 extension->location(), Manifest::NUM_LOCATIONS); |
| 3126 } | 3125 } |
| 3127 | 3126 |
| 3128 IdentifyAlertableExtensions(); | 3127 IdentifyAlertableExtensions(); |
| 3129 } | 3128 } |
| OLD | NEW |