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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 menu_manager_(profile), | 354 menu_manager_(profile), |
355 app_notification_manager_( | 355 app_notification_manager_( |
356 new extensions::AppNotificationManager(profile)), | 356 new extensions::AppNotificationManager(profile)), |
357 event_routers_initialized_(false), | 357 event_routers_initialized_(false), |
358 update_once_all_providers_are_ready_(false), | 358 update_once_all_providers_are_ready_(false), |
359 browser_terminating_(false), | 359 browser_terminating_(false), |
360 installs_delayed_(false), | 360 installs_delayed_(false), |
361 wipeout_is_active_(false), | 361 wipeout_is_active_(false), |
362 wipeout_count_(0u), | 362 wipeout_count_(0u), |
363 app_sync_bundle_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), | 363 app_sync_bundle_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), |
364 extension_sync_bundle_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), | 364 extension_sync_bundle_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) { |
365 app_shortcut_manager_(profile) { | |
366 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 365 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
367 | 366 |
368 // Figure out if extension installation should be enabled. | 367 // Figure out if extension installation should be enabled. |
369 if (command_line->HasSwitch(switches::kDisableExtensions) || | 368 if (command_line->HasSwitch(switches::kDisableExtensions) || |
370 profile->GetPrefs()->GetBoolean(prefs::kDisableExtensions)) { | 369 profile->GetPrefs()->GetBoolean(prefs::kDisableExtensions)) { |
371 extensions_enabled_ = false; | 370 extensions_enabled_ = false; |
372 } | 371 } |
373 | 372 |
374 registrar_.Add(this, chrome::NOTIFICATION_APP_TERMINATING, | 373 registrar_.Add(this, chrome::NOTIFICATION_APP_TERMINATING, |
375 content::NotificationService::AllBrowserContextsAndSources()); | 374 content::NotificationService::AllBrowserContextsAndSources()); |
(...skipping 2748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3124 if (!extension) | 3123 if (!extension) |
3125 continue; | 3124 continue; |
3126 blacklisted_extensions_.Insert(extension); | 3125 blacklisted_extensions_.Insert(extension); |
3127 UnloadExtension(*it, extension_misc::UNLOAD_REASON_BLACKLIST); | 3126 UnloadExtension(*it, extension_misc::UNLOAD_REASON_BLACKLIST); |
3128 UMA_HISTOGRAM_ENUMERATION("ExtensionBlacklist.BlacklistInstalled", | 3127 UMA_HISTOGRAM_ENUMERATION("ExtensionBlacklist.BlacklistInstalled", |
3129 extension->location(), Manifest::NUM_LOCATIONS); | 3128 extension->location(), Manifest::NUM_LOCATIONS); |
3130 } | 3129 } |
3131 | 3130 |
3132 IdentifyAlertableExtensions(); | 3131 IdentifyAlertableExtensions(); |
3133 } | 3132 } |
OLD | NEW |