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

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

Issue 194333002: Move extension_messages.h to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge again Created 6 years, 9 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/script_executor.cc ('k') | chrome/browser/extensions/tab_helper.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/suggest_permission_util.h" 5 #include "chrome/browser/extensions/suggest_permission_util.h"
6 6
7 #include "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/common/extensions/extension_messages.h"
9 #include "content/public/browser/render_view_host.h" 8 #include "content/public/browser/render_view_host.h"
10 #include "content/public/common/console_message_level.h" 9 #include "content/public/common/console_message_level.h"
11 #include "extensions/browser/extension_system.h" 10 #include "extensions/browser/extension_system.h"
12 #include "extensions/browser/process_manager.h" 11 #include "extensions/browser/process_manager.h"
13 #include "extensions/common/extension.h" 12 #include "extensions/common/extension.h"
13 #include "extensions/common/extension_messages.h"
14 #include "extensions/common/permissions/permissions_info.h" 14 #include "extensions/common/permissions/permissions_info.h"
15 15
16 using content::CONSOLE_MESSAGE_LEVEL_WARNING; 16 using content::CONSOLE_MESSAGE_LEVEL_WARNING;
17 using content::RenderViewHost; 17 using content::RenderViewHost;
18 18
19 const char kPermissionsHelpURLForExtensions[] = 19 const char kPermissionsHelpURLForExtensions[] =
20 "http://developer.chrome.com/extensions/manifest.html#permissions"; 20 "http://developer.chrome.com/extensions/manifest.html#permissions";
21 const char kPermissionsHelpURLForApps[] = 21 const char kPermissionsHelpURLForApps[] =
22 "http://developer.chrome.com/apps/declare_permissions.html"; 22 "http://developer.chrome.com/apps/declare_permissions.html";
23 23
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 if (extension && extension->HasAPIPermission(permission)) 81 if (extension && extension->HasAPIPermission(permission))
82 return true; 82 return true;
83 83
84 if (extension) 84 if (extension)
85 SuggestAPIPermissionInDevToolsConsole(permission, extension, profile); 85 SuggestAPIPermissionInDevToolsConsole(permission, extension, profile);
86 86
87 return false; 87 return false;
88 } 88 }
89 89
90 } // namespace extensions 90 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/script_executor.cc ('k') | chrome/browser/extensions/tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698