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

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

Issue 8051010: Separate Virtual Keyboard related conditionals from TouchUI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebased on ToT, fix along with review comments Created 9 years, 2 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
« no previous file with comments | « chrome/common/chrome_notification_types.h ('k') | no next file » | 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) 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
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
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) {}
OLDNEW
« no previous file with comments | « chrome/common/chrome_notification_types.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698