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

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

Issue 10692168: Moved ExternalExtensionLoaders/Providers into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Even later master Created 8 years, 5 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 | « chrome/browser/extensions/default_apps.h ('k') | chrome/browser/extensions/extension_service.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/default_apps.h" 5 #include "chrome/browser/extensions/default_apps.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/metrics/field_trial.h" 8 #include "base/metrics/field_trial.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/first_run/first_run.h" 10 #include "chrome/browser/first_run/first_run.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 namespace default_apps { 108 namespace default_apps {
109 109
110 void RegisterUserPrefs(PrefService* prefs) { 110 void RegisterUserPrefs(PrefService* prefs) {
111 prefs->RegisterIntegerPref(prefs::kDefaultAppsInstallState, kUnknown, 111 prefs->RegisterIntegerPref(prefs::kDefaultAppsInstallState, kUnknown,
112 PrefService::UNSYNCABLE_PREF); 112 PrefService::UNSYNCABLE_PREF);
113 } 113 }
114 114
115 Provider::Provider(Profile* profile, 115 Provider::Provider(Profile* profile,
116 VisitorInterface* service, 116 VisitorInterface* service,
117 ExternalExtensionLoader* loader, 117 extensions::ExternalLoader* loader,
118 extensions::Extension::Location crx_location, 118 extensions::Extension::Location crx_location,
119 extensions::Extension::Location download_location, 119 extensions::Extension::Location download_location,
120 int creation_flags) 120 int creation_flags)
121 : ExternalExtensionProviderImpl(service, loader, crx_location, 121 : extensions::ExternalProviderImpl(service, loader, crx_location,
122 download_location, creation_flags), 122 download_location, creation_flags),
123 profile_(profile) { 123 profile_(profile) {
124 DCHECK(profile); 124 DCHECK(profile);
125 set_auto_acknowledge(true); 125 set_auto_acknowledge(true);
126 } 126 }
127 127
128 void Provider::VisitRegisteredExtension() { 128 void Provider::VisitRegisteredExtension() {
129 if (!profile_ || !ShouldInstallInProfile(profile_)) { 129 if (!profile_ || !ShouldInstallInProfile(profile_)) {
130 base::DictionaryValue* prefs = new base::DictionaryValue; 130 base::DictionaryValue* prefs = new base::DictionaryValue;
131 SetPrefs(prefs); 131 SetPrefs(prefs);
132 return; 132 return;
133 } 133 }
134 134
135 ExternalExtensionProviderImpl::VisitRegisteredExtension(); 135 extensions::ExternalProviderImpl::VisitRegisteredExtension();
136 } 136 }
137 137
138 } // namespace default_apps 138 } // namespace default_apps
OLDNEW
« no previous file with comments | « chrome/browser/extensions/default_apps.h ('k') | chrome/browser/extensions/extension_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698