OLD | NEW |
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 Loading... |
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 |
None
OLD | NEW |