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

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

Issue 318993003: Install Google Slides and Sheets apps by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: better Created 6 years, 6 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/browser/resources/default_apps/external_extensions.json » ('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 <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 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 // The default apps are installed as INTERNAL but use the external 532 // The default apps are installed as INTERNAL but use the external
533 // extension installer codeflow. 533 // extension installer codeflow.
534 provider_list->push_back( 534 provider_list->push_back(
535 linked_ptr<ExternalProviderInterface>( 535 linked_ptr<ExternalProviderInterface>(
536 new default_apps::Provider( 536 new default_apps::Provider(
537 profile, 537 profile,
538 service, 538 service,
539 new ExternalPrefLoader(chrome::DIR_DEFAULT_APPS, 539 new ExternalPrefLoader(chrome::DIR_DEFAULT_APPS,
540 ExternalPrefLoader::NONE), 540 ExternalPrefLoader::NONE),
541 Manifest::INTERNAL, 541 Manifest::INTERNAL,
542 Manifest::INVALID_LOCATION, 542 Manifest::EXTERNAL_PREF_DOWNLOAD,
543 Extension::FROM_WEBSTORE | 543 Extension::FROM_WEBSTORE |
544 Extension::WAS_INSTALLED_BY_DEFAULT))); 544 Extension::WAS_INSTALLED_BY_DEFAULT)));
545 #endif 545 #endif
546 546
547 provider_list->push_back( 547 provider_list->push_back(
548 linked_ptr<ExternalProviderInterface>( 548 linked_ptr<ExternalProviderInterface>(
549 new ExternalProviderImpl( 549 new ExternalProviderImpl(
550 service, 550 service,
551 new ExternalComponentLoader(profile), 551 new ExternalComponentLoader(profile),
552 profile, 552 profile,
553 Manifest::INVALID_LOCATION, 553 Manifest::INVALID_LOCATION,
554 Manifest::EXTERNAL_COMPONENT, 554 Manifest::EXTERNAL_COMPONENT,
555 Extension::FROM_WEBSTORE | Extension::WAS_INSTALLED_BY_DEFAULT))); 555 Extension::FROM_WEBSTORE | Extension::WAS_INSTALLED_BY_DEFAULT)));
556 } 556 }
557 } 557 }
558 558
559 } // namespace extensions 559 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/default_apps/external_extensions.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698