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

Side by Side Diff: chrome/browser/profile_impl.cc

Issue 2808051: Refactored extension privilege enumeration and implemented URLPattern compari... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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 | « chrome/browser/net/chrome_url_request_context.cc ('k') | chrome/common/extensions/extension.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/profile_impl.h" 5 #include "chrome/browser/profile_impl.h"
6 6
7 #include "app/resource_bundle.h" 7 #include "app/resource_bundle.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/env_var.h" 9 #include "base/env_var.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 ChromeThread::PostTask( 162 ChromeThread::PostTask(
163 ChromeThread::IO, FROM_HERE, 163 ChromeThread::IO, FROM_HERE,
164 NewRunnableMethod(getter, 164 NewRunnableMethod(getter,
165 &ChromeURLRequestContextGetter::OnNewExtensions, 165 &ChromeURLRequestContextGetter::OnNewExtensions,
166 extension->id(), 166 extension->id(),
167 new ChromeURLRequestContext::ExtensionInfo( 167 new ChromeURLRequestContext::ExtensionInfo(
168 extension->name(), 168 extension->name(),
169 extension->path(), 169 extension->path(),
170 extension->default_locale(), 170 extension->default_locale(),
171 extension->web_extent(), 171 extension->web_extent(),
172 extension->GetEffectiveHostPermissions(),
172 extension->api_permissions()))); 173 extension->api_permissions())));
173 } 174 }
174 175
175 void PostExtensionUnloadedToContextGetter(ChromeURLRequestContextGetter* getter, 176 void PostExtensionUnloadedToContextGetter(ChromeURLRequestContextGetter* getter,
176 Extension* extension) { 177 Extension* extension) {
177 if (!getter) 178 if (!getter)
178 return; 179 return;
179 ChromeThread::PostTask( 180 ChromeThread::PostTask(
180 ChromeThread::IO, FROM_HERE, 181 ChromeThread::IO, FROM_HERE,
181 NewRunnableMethod(getter, 182 NewRunnableMethod(getter,
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after
1168 new ProfileSyncFactoryImpl(this, CommandLine::ForCurrentProcess())); 1169 new ProfileSyncFactoryImpl(this, CommandLine::ForCurrentProcess()));
1169 sync_service_.reset( 1170 sync_service_.reset(
1170 profile_sync_factory_->CreateProfileSyncService()); 1171 profile_sync_factory_->CreateProfileSyncService());
1171 sync_service_->Initialize(); 1172 sync_service_->Initialize();
1172 } 1173 }
1173 1174
1174 void ProfileImpl::InitCloudPrintProxyService() { 1175 void ProfileImpl::InitCloudPrintProxyService() {
1175 cloud_print_proxy_service_.reset(new CloudPrintProxyService(this)); 1176 cloud_print_proxy_service_.reset(new CloudPrintProxyService(this));
1176 cloud_print_proxy_service_->Initialize(); 1177 cloud_print_proxy_service_->Initialize();
1177 } 1178 }
OLDNEW
« no previous file with comments | « chrome/browser/net/chrome_url_request_context.cc ('k') | chrome/common/extensions/extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698