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

Side by Side Diff: chrome/browser/renderer_context_menu/context_menu_content_type_platform_app.cc

Issue 816403003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 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
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/renderer_context_menu/context_menu_content_type_platfor m_app.h" 5 #include "chrome/browser/renderer_context_menu/context_menu_content_type_platfor m_app.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/common/chrome_switches.h" 8 #include "chrome/common/chrome_switches.h"
9 #include "extensions/common/extension.h" 9 #include "extensions/common/extension.h"
10 #include "extensions/common/manifest.h" 10 #include "extensions/common/manifest.h"
(...skipping 20 matching lines...) Expand all
31 // Add undo/redo, cut/copy/paste etc for text fields. 31 // Add undo/redo, cut/copy/paste etc for text fields.
32 case ITEM_GROUP_EDITABLE: 32 case ITEM_GROUP_EDITABLE:
33 case ITEM_GROUP_COPY: 33 case ITEM_GROUP_COPY:
34 return ContextMenuContentType::SupportsGroup(group); 34 return ContextMenuContentType::SupportsGroup(group);
35 case ITEM_GROUP_CURRENT_EXTENSION: 35 case ITEM_GROUP_CURRENT_EXTENSION:
36 return true; 36 return true;
37 case ITEM_GROUP_DEVTOOLS_UNPACKED_EXT: 37 case ITEM_GROUP_DEVTOOLS_UNPACKED_EXT:
38 // Add dev tools for unpacked extensions. 38 // Add dev tools for unpacked extensions.
39 return extensions::Manifest::IsUnpackedLocation( 39 return extensions::Manifest::IsUnpackedLocation(
40 platform_app->location()) || 40 platform_app->location()) ||
41 CommandLine::ForCurrentProcess()->HasSwitch( 41 base::CommandLine::ForCurrentProcess()->HasSwitch(
42 switches::kDebugPackedApps); 42 switches::kDebugPackedApps);
43 default: 43 default:
44 return false; 44 return false;
45 } 45 }
46 } 46 }
OLDNEW
« no previous file with comments | « chrome/browser/referrer_policy_browsertest.cc ('k') | chrome/browser/renderer_context_menu/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698