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

Side by Side Diff: chrome/common/extensions/extension.cc

Issue 3173018: Merge 55103 - Refactored extension privilege enumeration and implemented URLP... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/472/src/
Patch Set: Created 10 years, 4 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/common/extensions/extension.h ('k') | chrome/common/extensions/extension_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
None
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/common/extensions/extension.h" 5 #include "chrome/common/extensions/extension.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 if (old_extension->plugins().size() > 0) 840 if (old_extension->plugins().size() > 0)
841 return false; 841 return false;
842 842
843 // Otherwise, if the new extension has a plugin, it's a privilege increase. 843 // Otherwise, if the new extension has a plugin, it's a privilege increase.
844 if (new_extension->plugins().size() > 0) 844 if (new_extension->plugins().size() > 0)
845 return true; 845 return true;
846 846
847 // If we are increasing the set of hosts we have access to, it's a privilege 847 // If we are increasing the set of hosts we have access to, it's a privilege
848 // increase. 848 // increase.
849 if (!old_extension->HasAccessToAllHosts()) { 849 if (!old_extension->HasAccessToAllHosts()) {

error: old chunk mismatch

OLDNEW
« no previous file with comments | « chrome/common/extensions/extension.h ('k') | chrome/common/extensions/extension_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698