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

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

Issue 8800016: Exempt default apps from external-extension alerts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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
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/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/extensions/default_apps_trial.h" 10 #include "chrome/browser/extensions/default_apps_trial.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 Provider::Provider(Profile* profile, 107 Provider::Provider(Profile* profile,
108 VisitorInterface* service, 108 VisitorInterface* service,
109 ExternalExtensionLoader* loader, 109 ExternalExtensionLoader* loader,
110 Extension::Location crx_location, 110 Extension::Location crx_location,
111 Extension::Location download_location, 111 Extension::Location download_location,
112 int creation_flags) 112 int creation_flags)
113 : ExternalExtensionProviderImpl(service, loader, crx_location, 113 : ExternalExtensionProviderImpl(service, loader, crx_location,
114 download_location, creation_flags), 114 download_location, creation_flags),
115 profile_(profile) { 115 profile_(profile) {
116 DCHECK(profile); 116 DCHECK(profile);
117 set_should_acknowledge(true);
117 } 118 }
118 119
119 void Provider::VisitRegisteredExtension() { 120 void Provider::VisitRegisteredExtension() {
120 if (!profile_ || !ShouldInstallInProfile(profile_)) { 121 if (!profile_ || !ShouldInstallInProfile(profile_)) {
121 base::DictionaryValue* prefs = new base::DictionaryValue; 122 base::DictionaryValue* prefs = new base::DictionaryValue;
122 SetPrefs(prefs); 123 SetPrefs(prefs);
123 return; 124 return;
124 } 125 }
125 126
126 ExternalExtensionProviderImpl::VisitRegisteredExtension(); 127 ExternalExtensionProviderImpl::VisitRegisteredExtension();
127 } 128 }
128 129
129 } // namespace default_apps 130 } // namespace default_apps
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.h » ('j') | chrome/browser/extensions/extension_service.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698