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

Side by Side Diff: chrome/browser/extensions/api/management/chrome_management_api_delegate.cc

Issue 839193002: Move ServiceAccessType into //components/keyed_service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation on android Created 5 years, 11 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/api/management/chrome_management_api_delegat e.h" 5 #include "chrome/browser/extensions/api/management/chrome_management_api_delegat e.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/browser/extensions/bookmark_app_helper.h" 8 #include "chrome/browser/extensions/bookmark_app_helper.h"
9 #include "chrome/browser/extensions/chrome_extension_function_details.h" 9 #include "chrome/browser/extensions/chrome_extension_function_details.h"
10 #include "chrome/browser/extensions/extension_service.h" 10 #include "chrome/browser/extensions/extension_service.h"
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 return true; 239 return true;
240 } 240 }
241 241
242 scoped_ptr<extensions::AppForLinkDelegate> 242 scoped_ptr<extensions::AppForLinkDelegate>
243 ChromeManagementAPIDelegate::GenerateAppForLinkFunctionDelegate( 243 ChromeManagementAPIDelegate::GenerateAppForLinkFunctionDelegate(
244 extensions::ManagementGenerateAppForLinkFunction* function, 244 extensions::ManagementGenerateAppForLinkFunction* function,
245 content::BrowserContext* context, 245 content::BrowserContext* context,
246 const std::string& title, 246 const std::string& title,
247 const GURL& launch_url) const { 247 const GURL& launch_url) const {
248 FaviconService* favicon_service = FaviconServiceFactory::GetForProfile( 248 FaviconService* favicon_service = FaviconServiceFactory::GetForProfile(
249 Profile::FromBrowserContext(context), Profile::EXPLICIT_ACCESS); 249 Profile::FromBrowserContext(context), ServiceAccessType::EXPLICIT_ACCESS);
250 DCHECK(favicon_service); 250 DCHECK(favicon_service);
251 251
252 ChromeAppForLinkDelegate* delegate = new ChromeAppForLinkDelegate; 252 ChromeAppForLinkDelegate* delegate = new ChromeAppForLinkDelegate;
253 253
254 favicon_service->GetFaviconImageForPageURL( 254 favicon_service->GetFaviconImageForPageURL(
255 launch_url, 255 launch_url,
256 base::Bind( 256 base::Bind(
257 &ChromeAppForLinkDelegate::OnFaviconForApp, 257 &ChromeAppForLinkDelegate::OnFaviconForApp,
258 base::Unretained(delegate), 258 base::Unretained(delegate),
259 scoped_refptr<extensions::ManagementGenerateAppForLinkFunction>( 259 scoped_refptr<extensions::ManagementGenerateAppForLinkFunction>(
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 308
309 GURL ChromeManagementAPIDelegate::GetIconURL( 309 GURL ChromeManagementAPIDelegate::GetIconURL(
310 const extensions::Extension* extension, 310 const extensions::Extension* extension,
311 int icon_size, 311 int icon_size,
312 ExtensionIconSet::MatchType match, 312 ExtensionIconSet::MatchType match,
313 bool grayscale, 313 bool grayscale,
314 bool* exists) const { 314 bool* exists) const {
315 return extensions::ExtensionIconSource::GetIconURL(extension, icon_size, 315 return extensions::ExtensionIconSource::GetIconURL(extension, icon_size,
316 match, grayscale, exists); 316 match, grayscale, exists);
317 } 317 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/history/history_api.cc ('k') | chrome/browser/favicon/chrome_favicon_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698