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

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

Issue 8477005: Add policies to specify an enterprise web store. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add tests for ComponentLoader. Created 9 years, 1 month 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/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 switches::kExtensionsUpdateFrequency), 402 switches::kExtensionsUpdateFrequency),
403 &update_frequency); 403 &update_frequency);
404 } 404 }
405 updater_.reset(new ExtensionUpdater(this, 405 updater_.reset(new ExtensionUpdater(this,
406 extension_prefs, 406 extension_prefs,
407 profile->GetPrefs(), 407 profile->GetPrefs(),
408 profile, 408 profile,
409 update_frequency)); 409 update_frequency));
410 } 410 }
411 411
412 component_loader_.reset(new extensions::ComponentLoader(this)); 412 component_loader_.reset(
413 new extensions::ComponentLoader(this, profile->GetPrefs()));
413 414
414 app_notification_manager_->Init(); 415 app_notification_manager_->Init();
415 416
416 if (extensions_enabled_) { 417 if (extensions_enabled_) {
417 ExternalExtensionProviderImpl::CreateExternalProviders( 418 ExternalExtensionProviderImpl::CreateExternalProviders(
418 this, profile_, &external_extension_providers_); 419 this, profile_, &external_extension_providers_);
419 } 420 }
420 421
421 // Use monochrome icons for Omnibox icons. 422 // Use monochrome icons for Omnibox icons.
422 omnibox_popup_icon_manager_.set_monochrome(true); 423 omnibox_popup_icon_manager_.set_monochrome(true);
(...skipping 2060 matching lines...) Expand 10 before | Expand all | Expand 10 after
2483 2484
2484 ExtensionService::NaClModuleInfoList::iterator 2485 ExtensionService::NaClModuleInfoList::iterator
2485 ExtensionService::FindNaClModule(const GURL& url) { 2486 ExtensionService::FindNaClModule(const GURL& url) {
2486 for (NaClModuleInfoList::iterator iter = nacl_module_list_.begin(); 2487 for (NaClModuleInfoList::iterator iter = nacl_module_list_.begin();
2487 iter != nacl_module_list_.end(); ++iter) { 2488 iter != nacl_module_list_.end(); ++iter) {
2488 if (iter->url == url) 2489 if (iter->url == url)
2489 return iter; 2490 return iter;
2490 } 2491 }
2491 return nacl_module_list_.end(); 2492 return nacl_module_list_.end();
2492 } 2493 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698