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

Side by Side Diff: Source/WebKit/chromium/src/WebRuntimeFeatures.cpp

Issue 13774005: Remove the ENABLE_SQL_DATABASE compile-time flag. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: python Created 7 years, 8 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 | « Source/WebKit/chromium/src/WebDatabase.cpp ('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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 nativeValidationMessageEnabled = enable; 51 nativeValidationMessageEnabled = enable;
52 } 52 }
53 53
54 bool WebRuntimeFeatures::isNativeValidationMessageEnabled() 54 bool WebRuntimeFeatures::isNativeValidationMessageEnabled()
55 { 55 {
56 return nativeValidationMessageEnabled; 56 return nativeValidationMessageEnabled;
57 } 57 }
58 58
59 void WebRuntimeFeatures::enableDatabase(bool enable) 59 void WebRuntimeFeatures::enableDatabase(bool enable)
60 { 60 {
61 #if ENABLE(SQL_DATABASE)
62 DatabaseManager::manager().setIsAvailable(enable); 61 DatabaseManager::manager().setIsAvailable(enable);
63 #endif
64 } 62 }
65 63
66 bool WebRuntimeFeatures::isDatabaseEnabled() 64 bool WebRuntimeFeatures::isDatabaseEnabled()
67 { 65 {
68 #if ENABLE(SQL_DATABASE)
69 return DatabaseManager::manager().isAvailable(); 66 return DatabaseManager::manager().isAvailable();
70 #else
71 return false;
72 #endif
73 } 67 }
74 68
75 // FIXME: Remove the ability to enable this feature at runtime. 69 // FIXME: Remove the ability to enable this feature at runtime.
76 void WebRuntimeFeatures::enableLocalStorage(bool enable) 70 void WebRuntimeFeatures::enableLocalStorage(bool enable)
77 { 71 {
78 RuntimeEnabledFeatures::setLocalStorageEnabled(enable); 72 RuntimeEnabledFeatures::setLocalStorageEnabled(enable);
79 } 73 }
80 74
81 // FIXME: Remove the ability to enable this feature at runtime. 75 // FIXME: Remove the ability to enable this feature at runtime.
82 bool WebRuntimeFeatures::isLocalStorageEnabled() 76 bool WebRuntimeFeatures::isLocalStorageEnabled()
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 bool WebRuntimeFeatures::isRequestAutocompleteEnabled() 686 bool WebRuntimeFeatures::isRequestAutocompleteEnabled()
693 { 687 {
694 #if ENABLE(REQUEST_AUTOCOMPLETE) 688 #if ENABLE(REQUEST_AUTOCOMPLETE)
695 return RuntimeEnabledFeatures::requestAutocompleteEnabled(); 689 return RuntimeEnabledFeatures::requestAutocompleteEnabled();
696 #else 690 #else
697 return false; 691 return false;
698 #endif 692 #endif
699 } 693 }
700 694
701 } // namespace WebKit 695 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/src/WebDatabase.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698