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

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

Issue 883603002: Rename StreamlinedHostedApps to NewBookmarkApps in the code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments and variables Created 5 years, 10 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 &ChromeAppForLinkDelegate::OnFaviconForApp, 257 &ChromeAppForLinkDelegate::OnFaviconForApp,
258 base::Unretained(delegate), 258 base::Unretained(delegate),
259 scoped_refptr<extensions::ManagementGenerateAppForLinkFunction>( 259 scoped_refptr<extensions::ManagementGenerateAppForLinkFunction>(
260 function), 260 function),
261 context, title, launch_url), 261 context, title, launch_url),
262 &delegate->cancelable_task_tracker_); 262 &delegate->cancelable_task_tracker_);
263 263
264 return scoped_ptr<extensions::AppForLinkDelegate>(delegate); 264 return scoped_ptr<extensions::AppForLinkDelegate>(delegate);
265 } 265 }
266 266
267 bool ChromeManagementAPIDelegate::IsStreamlinedHostedAppsEnabled() const { 267 bool ChromeManagementAPIDelegate::IsNewBookmarkAppsEnabled() const {
268 return extensions::util::IsStreamlinedHostedAppsEnabled(); 268 return extensions::util::IsNewBookmarkAppsEnabled();
269 } 269 }
270 270
271 void ChromeManagementAPIDelegate::EnableExtension( 271 void ChromeManagementAPIDelegate::EnableExtension(
272 content::BrowserContext* context, 272 content::BrowserContext* context,
273 const std::string& extension_id) const { 273 const std::string& extension_id) const {
274 extensions::ExtensionSystem::Get(context) 274 extensions::ExtensionSystem::Get(context)
275 ->extension_service() 275 ->extension_service()
276 ->EnableExtension(extension_id); 276 ->EnableExtension(extension_id);
277 } 277 }
278 278
(...skipping 27 matching lines...) Expand all
306 306
307 GURL ChromeManagementAPIDelegate::GetIconURL( 307 GURL ChromeManagementAPIDelegate::GetIconURL(
308 const extensions::Extension* extension, 308 const extensions::Extension* extension,
309 int icon_size, 309 int icon_size,
310 ExtensionIconSet::MatchType match, 310 ExtensionIconSet::MatchType match,
311 bool grayscale, 311 bool grayscale,
312 bool* exists) const { 312 bool* exists) const {
313 return extensions::ExtensionIconSource::GetIconURL(extension, icon_size, 313 return extensions::ExtensionIconSource::GetIconURL(extension, icon_size,
314 match, grayscale, exists); 314 match, grayscale, exists);
315 } 315 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698