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

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

Issue 9963120: Introduces an additional extension loader that load extra extensions based on per-extension json fi… (Closed) Base URL: https://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 7 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 | « AUTHORS ('k') | chrome/browser/extensions/external_pref_extension_loader.h » ('j') | 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_extension_provider_impl.h" 5 #include "chrome/browser/extensions/external_extension_provider_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/linked_ptr.h" 10 #include "base/memory/linked_ptr.h"
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 #if defined(OS_WIN) 348 #if defined(OS_WIN)
349 provider_list->push_back( 349 provider_list->push_back(
350 linked_ptr<ExternalExtensionProviderInterface>( 350 linked_ptr<ExternalExtensionProviderInterface>(
351 new ExternalExtensionProviderImpl( 351 new ExternalExtensionProviderImpl(
352 service, 352 service,
353 new ExternalRegistryExtensionLoader, 353 new ExternalRegistryExtensionLoader,
354 Extension::EXTERNAL_REGISTRY, 354 Extension::EXTERNAL_REGISTRY,
355 Extension::INVALID, 355 Extension::INVALID,
356 Extension::NO_FLAGS))); 356 Extension::NO_FLAGS)));
357 #endif 357 #endif
358
359 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
360 provider_list->push_back(
361 linked_ptr<ExternalExtensionProviderInterface>(
362 new ExternalExtensionProviderImpl(
363 service,
364 new ExternalPrefExtensionLoader(
365 chrome::DIR_STANDALONE_EXTERNAL_EXTENSIONS,
366 ExternalPrefExtensionLoader::NONE),
367 Extension::EXTERNAL_PREF,
368 Extension::EXTERNAL_PREF_DOWNLOAD,
369 Extension::NO_FLAGS)));
370 #endif
371
358 provider_list->push_back( 372 provider_list->push_back(
359 linked_ptr<ExternalExtensionProviderInterface>( 373 linked_ptr<ExternalExtensionProviderInterface>(
360 new ExternalExtensionProviderImpl( 374 new ExternalExtensionProviderImpl(
361 service, 375 service,
362 new ExternalPolicyExtensionLoader(profile), 376 new ExternalPolicyExtensionLoader(profile),
363 Extension::INVALID, 377 Extension::INVALID,
364 Extension::EXTERNAL_POLICY_DOWNLOAD, 378 Extension::EXTERNAL_POLICY_DOWNLOAD,
365 Extension::NO_FLAGS))); 379 Extension::NO_FLAGS)));
366 380
367 #if !defined(OS_CHROMEOS) 381 #if !defined(OS_CHROMEOS)
(...skipping 21 matching lines...) Expand all
389 linked_ptr<ExternalExtensionProviderInterface>( 403 linked_ptr<ExternalExtensionProviderInterface>(
390 new ExternalExtensionProviderImpl( 404 new ExternalExtensionProviderImpl(
391 service, 405 service,
392 connector->GetAppPackUpdater()->CreateExternalExtensionLoader(), 406 connector->GetAppPackUpdater()->CreateExternalExtensionLoader(),
393 Extension::EXTERNAL_PREF, 407 Extension::EXTERNAL_PREF,
394 Extension::INVALID, 408 Extension::INVALID,
395 Extension::NO_FLAGS))); 409 Extension::NO_FLAGS)));
396 } 410 }
397 #endif 411 #endif
398 } 412 }
OLDNEW
« no previous file with comments | « AUTHORS ('k') | chrome/browser/extensions/external_pref_extension_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698