| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/base64.h" | 9 #include "base/base64.h" |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 2024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2035 return false; | 2035 return false; |
| 2036 } | 2036 } |
| 2037 | 2037 |
| 2038 // Validate that the overrides are all strings | 2038 // Validate that the overrides are all strings |
| 2039 for (DictionaryValue::key_iterator iter = overrides->begin_keys(); | 2039 for (DictionaryValue::key_iterator iter = overrides->begin_keys(); |
| 2040 iter != overrides->end_keys(); ++iter) { | 2040 iter != overrides->end_keys(); ++iter) { |
| 2041 std::string page = *iter; | 2041 std::string page = *iter; |
| 2042 std::string val; | 2042 std::string val; |
| 2043 // Restrict override pages to a list of supported URLs. | 2043 // Restrict override pages to a list of supported URLs. |
| 2044 if ((page != chrome::kChromeUINewTabHost && | 2044 if ((page != chrome::kChromeUINewTabHost && |
| 2045 #if defined(TOUCH_UI) | 2045 #if defined(USE_VIRTUAL_KEYBOARD) |
| 2046 page != chrome::kChromeUIKeyboardHost && | 2046 page != chrome::kChromeUIKeyboardHost && |
| 2047 #endif | 2047 #endif |
| 2048 #if defined(OS_CHROMEOS) | 2048 #if defined(OS_CHROMEOS) |
| 2049 page != chrome::kChromeUIActivationMessageHost && | 2049 page != chrome::kChromeUIActivationMessageHost && |
| 2050 #endif | 2050 #endif |
| 2051 page != chrome::kChromeUIBookmarksHost && | 2051 page != chrome::kChromeUIBookmarksHost && |
| 2052 page != chrome::kChromeUIHistoryHost | 2052 page != chrome::kChromeUIHistoryHost |
| 2053 #if defined(FILE_MANAGER_EXTENSION) | 2053 #if defined(FILE_MANAGER_EXTENSION) |
| 2054 && | 2054 && |
| 2055 !(location() == COMPONENT && | 2055 !(location() == COMPONENT && |
| (...skipping 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2973 already_disabled(false), | 2973 already_disabled(false), |
| 2974 extension(extension) {} | 2974 extension(extension) {} |
| 2975 | 2975 |
| 2976 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( | 2976 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( |
| 2977 const Extension* extension, | 2977 const Extension* extension, |
| 2978 const ExtensionPermissionSet* permissions, | 2978 const ExtensionPermissionSet* permissions, |
| 2979 Reason reason) | 2979 Reason reason) |
| 2980 : reason(reason), | 2980 : reason(reason), |
| 2981 extension(extension), | 2981 extension(extension), |
| 2982 permissions(permissions) {} | 2982 permissions(permissions) {} |
| OLD | NEW |