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

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

Issue 12378037: Move apps_shortcut_manager into src/apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Hmmmm Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698