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

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

Issue 10916312: Support DIR_STANDALONE_EXTERNAL_EXTENSIONS on Chrome OS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
« no previous file with comments | « no previous file | chrome/common/chrome_paths.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_provider_impl.h" 5 #include "chrome/browser/extensions/external_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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 provider_list->push_back( 365 provider_list->push_back(
366 linked_ptr<ExternalProviderInterface>( 366 linked_ptr<ExternalProviderInterface>(
367 new ExternalProviderImpl( 367 new ExternalProviderImpl(
368 service, 368 service,
369 new ExternalRegistryLoader, 369 new ExternalRegistryLoader,
370 Extension::EXTERNAL_REGISTRY, 370 Extension::EXTERNAL_REGISTRY,
371 Extension::INVALID, 371 Extension::INVALID,
372 Extension::NO_FLAGS))); 372 Extension::NO_FLAGS)));
373 #endif 373 #endif
374 374
375 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) 375 #if defined(OS_LINUX)
376 provider_list->push_back( 376 provider_list->push_back(
377 linked_ptr<ExternalProviderInterface>( 377 linked_ptr<ExternalProviderInterface>(
378 new ExternalProviderImpl( 378 new ExternalProviderImpl(
379 service, 379 service,
380 new ExternalPrefLoader(chrome::DIR_STANDALONE_EXTERNAL_EXTENSIONS, 380 new ExternalPrefLoader(chrome::DIR_STANDALONE_EXTERNAL_EXTENSIONS,
381 ExternalPrefLoader::NONE), 381 ExternalPrefLoader::NONE),
382 Extension::EXTERNAL_PREF, 382 Extension::EXTERNAL_PREF,
383 Extension::EXTERNAL_PREF_DOWNLOAD, 383 Extension::EXTERNAL_PREF_DOWNLOAD,
384 Extension::NO_FLAGS))); 384 bundled_extension_creation_flags)));
385 #endif 385 #endif
386 386
387 provider_list->push_back( 387 provider_list->push_back(
388 linked_ptr<ExternalProviderInterface>( 388 linked_ptr<ExternalProviderInterface>(
389 new ExternalProviderImpl( 389 new ExternalProviderImpl(
390 service, 390 service,
391 new ExternalPolicyLoader(profile), 391 new ExternalPolicyLoader(profile),
392 Extension::INVALID, 392 Extension::INVALID,
393 Extension::EXTERNAL_POLICY_DOWNLOAD, 393 Extension::EXTERNAL_POLICY_DOWNLOAD,
394 Extension::NO_FLAGS))); 394 Extension::NO_FLAGS)));
(...skipping 24 matching lines...) Expand all
419 service, 419 service,
420 connector->GetAppPackUpdater()->CreateExternalLoader(), 420 connector->GetAppPackUpdater()->CreateExternalLoader(),
421 Extension::EXTERNAL_PREF, 421 Extension::EXTERNAL_PREF,
422 Extension::INVALID, 422 Extension::INVALID,
423 Extension::NO_FLAGS))); 423 Extension::NO_FLAGS)));
424 } 424 }
425 #endif 425 #endif
426 } 426 }
427 427
428 } // namespace extensions 428 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | chrome/common/chrome_paths.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698