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

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

Issue 489313002: Centralize command line checks for kEnableStreamlinedHostedApps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 3 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/extensions/extension_util.h ('k') | chrome/browser/extensions/launch_util.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/extension_util.h" 5 #include "chrome/browser/extensions/extension_util.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/extensions/extension_service.h" 10 #include "chrome/browser/extensions/extension_service.h"
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 const gfx::ImageSkia& GetDefaultAppIcon() { 316 const gfx::ImageSkia& GetDefaultAppIcon() {
317 return *ResourceBundle::GetSharedInstance().GetImageSkiaNamed( 317 return *ResourceBundle::GetSharedInstance().GetImageSkiaNamed(
318 IDR_APP_DEFAULT_ICON); 318 IDR_APP_DEFAULT_ICON);
319 } 319 }
320 320
321 const gfx::ImageSkia& GetDefaultExtensionIcon() { 321 const gfx::ImageSkia& GetDefaultExtensionIcon() {
322 return *ResourceBundle::GetSharedInstance().GetImageSkiaNamed( 322 return *ResourceBundle::GetSharedInstance().GetImageSkiaNamed(
323 IDR_EXTENSION_DEFAULT_ICON); 323 IDR_EXTENSION_DEFAULT_ICON);
324 } 324 }
325 325
326 bool IsStreamlinedHostedAppsEnabled() {
327 return CommandLine::ForCurrentProcess()->HasSwitch(
328 switches::kEnableStreamlinedHostedApps);
329 }
330
326 } // namespace util 331 } // namespace util
327 } // namespace extensions 332 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_util.h ('k') | chrome/browser/extensions/launch_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698