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

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

Issue 955683002: Register external extension providers also for supervised users (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 5 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/external_provider_impl.h" 5 #include "chrome/browser/extensions/external_provider_impl.h"
6 6
7 #include <set> 7 #include <set>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 chromeos::ServicesCustomizationDocument::GetInstance(); 491 chromeos::ServicesCustomizationDocument::GetInstance();
492 provider_list->push_back(linked_ptr<ExternalProviderInterface>( 492 provider_list->push_back(linked_ptr<ExternalProviderInterface>(
493 new ExternalProviderImpl(service, 493 new ExternalProviderImpl(service,
494 customization->CreateExternalLoader(profile), 494 customization->CreateExternalLoader(profile),
495 profile, 495 profile,
496 Manifest::EXTERNAL_PREF, 496 Manifest::EXTERNAL_PREF,
497 Manifest::EXTERNAL_PREF_DOWNLOAD, 497 Manifest::EXTERNAL_PREF_DOWNLOAD,
498 oem_extension_creation_flags))); 498 oem_extension_creation_flags)));
499 } 499 }
500 #elif defined(OS_LINUX) 500 #elif defined(OS_LINUX)
501 if (!profile->IsSupervised()) { 501 if (!profile->IsLegacySupervised()) {
502 provider_list->push_back( 502 provider_list->push_back(
503 linked_ptr<ExternalProviderInterface>( 503 linked_ptr<ExternalProviderInterface>(
504 new ExternalProviderImpl( 504 new ExternalProviderImpl(
505 service, 505 service,
506 new ExternalPrefLoader( 506 new ExternalPrefLoader(
507 chrome::DIR_STANDALONE_EXTERNAL_EXTENSIONS, 507 chrome::DIR_STANDALONE_EXTERNAL_EXTENSIONS,
508 ExternalPrefLoader::NONE, 508 ExternalPrefLoader::NONE,
509 NULL), 509 NULL),
510 profile, 510 profile,
511 Manifest::EXTERNAL_PREF, 511 Manifest::EXTERNAL_PREF,
512 Manifest::EXTERNAL_PREF_DOWNLOAD, 512 Manifest::EXTERNAL_PREF_DOWNLOAD,
513 bundled_extension_creation_flags))); 513 bundled_extension_creation_flags)));
514 } 514 }
515 #endif 515 #endif
516 516
517 if (!profile->IsSupervised()) { 517 if (!profile->IsLegacySupervised()) {
518 #if defined(OS_WIN) 518 #if defined(OS_WIN)
519 provider_list->push_back( 519 provider_list->push_back(
520 linked_ptr<ExternalProviderInterface>( 520 linked_ptr<ExternalProviderInterface>(
521 new ExternalProviderImpl( 521 new ExternalProviderImpl(
522 service, 522 service,
523 new ExternalRegistryLoader, 523 new ExternalRegistryLoader,
524 profile, 524 profile,
525 Manifest::EXTERNAL_REGISTRY, 525 Manifest::EXTERNAL_REGISTRY,
526 Manifest::EXTERNAL_PREF_DOWNLOAD, 526 Manifest::EXTERNAL_PREF_DOWNLOAD,
527 Extension::NO_FLAGS))); 527 Extension::NO_FLAGS)));
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 profile, 563 profile,
564 service, 564 service,
565 new ExternalPrefLoader(chrome::DIR_DEFAULT_APPS, 565 new ExternalPrefLoader(chrome::DIR_DEFAULT_APPS,
566 ExternalPrefLoader::NONE, 566 ExternalPrefLoader::NONE,
567 NULL), 567 NULL),
568 Manifest::INTERNAL, 568 Manifest::INTERNAL,
569 Manifest::INTERNAL, 569 Manifest::INTERNAL,
570 Extension::FROM_WEBSTORE | 570 Extension::FROM_WEBSTORE |
571 Extension::WAS_INSTALLED_BY_DEFAULT))); 571 Extension::WAS_INSTALLED_BY_DEFAULT)));
572 #endif 572 #endif
573 }
573 574
574 provider_list->push_back( 575 provider_list->push_back(
575 linked_ptr<ExternalProviderInterface>( 576 linked_ptr<ExternalProviderInterface>(
576 new ExternalProviderImpl( 577 new ExternalProviderImpl(
577 service, 578 service,
578 new ExternalComponentLoader(profile), 579 new ExternalComponentLoader(profile),
579 profile, 580 profile,
580 Manifest::INVALID_LOCATION, 581 Manifest::INVALID_LOCATION,
581 Manifest::EXTERNAL_COMPONENT, 582 Manifest::EXTERNAL_COMPONENT,
582 Extension::FROM_WEBSTORE | Extension::WAS_INSTALLED_BY_DEFAULT))); 583 Extension::FROM_WEBSTORE | Extension::WAS_INSTALLED_BY_DEFAULT)));
583 }
584 } 584 }
585 585
586 } // namespace extensions 586 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698