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

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

Issue 8400047: When install default apps on the Mac, don't need to do extra checking (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
« 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) 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/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 Extension::EXTERNAL_POLICY_DOWNLOAD, 348 Extension::EXTERNAL_POLICY_DOWNLOAD,
349 Extension::NO_FLAGS))); 349 Extension::NO_FLAGS)));
350 350
351 #if !defined(OS_CHROMEOS) 351 #if !defined(OS_CHROMEOS)
352 if (default_apps::ShouldInstallInProfile(profile)) { 352 if (default_apps::ShouldInstallInProfile(profile)) {
353 provider_list->push_back( 353 provider_list->push_back(
354 linked_ptr<ExternalExtensionProviderInterface>( 354 linked_ptr<ExternalExtensionProviderInterface>(
355 new ExternalExtensionProviderImpl( 355 new ExternalExtensionProviderImpl(
356 service, 356 service,
357 new ExternalPrefExtensionLoader( 357 new ExternalPrefExtensionLoader(
358 chrome::DIR_DEFAULT_APPS, options), 358 chrome::DIR_DEFAULT_APPS,
359 ExternalPrefExtensionLoader::NONE),
359 Extension::EXTERNAL_PREF, 360 Extension::EXTERNAL_PREF,
360 Extension::INVALID, 361 Extension::INVALID,
361 Extension::FROM_BOOKMARK))); 362 Extension::FROM_BOOKMARK)));
362 } 363 }
363 #endif 364 #endif
364 } 365 }
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