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

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

Issue 8361027: Re-commit 106660 with the crashing test disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 9 years, 2 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <set> 8 #include <set>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 584
585 ExtensionService::ExtensionService(Profile* profile, 585 ExtensionService::ExtensionService(Profile* profile,
586 const CommandLine* command_line, 586 const CommandLine* command_line,
587 const FilePath& install_directory, 587 const FilePath& install_directory,
588 ExtensionPrefs* extension_prefs, 588 ExtensionPrefs* extension_prefs,
589 bool autoupdate_enabled, 589 bool autoupdate_enabled,
590 bool extensions_enabled) 590 bool extensions_enabled)
591 : weak_ptr_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), 591 : weak_ptr_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)),
592 profile_(profile), 592 profile_(profile),
593 extension_prefs_(extension_prefs), 593 extension_prefs_(extension_prefs),
594 extension_settings_frontend_( 594 extension_settings_frontend_(profile),
595 profile->GetPath().AppendASCII(kSettingsDirectoryName)),
596 pending_extension_manager_(*ALLOW_THIS_IN_INITIALIZER_LIST(this)), 595 pending_extension_manager_(*ALLOW_THIS_IN_INITIALIZER_LIST(this)),
597 install_directory_(install_directory), 596 install_directory_(install_directory),
598 extensions_enabled_(extensions_enabled), 597 extensions_enabled_(extensions_enabled),
599 show_extensions_prompts_(true), 598 show_extensions_prompts_(true),
600 ready_(false), 599 ready_(false),
601 toolbar_model_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), 600 toolbar_model_(ALLOW_THIS_IN_INITIALIZER_LIST(this)),
602 menu_manager_(profile), 601 menu_manager_(profile),
603 app_notification_manager_(new AppNotificationManager(profile)), 602 app_notification_manager_(new AppNotificationManager(profile)),
604 permissions_manager_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), 603 permissions_manager_(ALLOW_THIS_IN_INITIALIZER_LIST(this)),
605 apps_promo_(profile->GetPrefs()), 604 apps_promo_(profile->GetPrefs()),
(...skipping 2419 matching lines...) Expand 10 before | Expand all | Expand 10 after
3025 3024
3026 ExtensionService::NaClModuleInfoList::iterator 3025 ExtensionService::NaClModuleInfoList::iterator
3027 ExtensionService::FindNaClModule(const GURL& url) { 3026 ExtensionService::FindNaClModule(const GURL& url) {
3028 for (NaClModuleInfoList::iterator iter = nacl_module_list_.begin(); 3027 for (NaClModuleInfoList::iterator iter = nacl_module_list_.begin();
3029 iter != nacl_module_list_.end(); ++iter) { 3028 iter != nacl_module_list_.end(); ++iter) {
3030 if (iter->url == url) 3029 if (iter->url == url)
3031 return iter; 3030 return iter;
3032 } 3031 }
3033 return nacl_module_list_.end(); 3032 return nacl_module_list_.end();
3034 } 3033 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_event_names.cc ('k') | chrome/browser/extensions/extension_setting_changes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698