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

Side by Side Diff: third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp

Issue 2743653004: Remove IndexedDB experimental features flag. (Closed)
Patch Set: Addressed feedback. Created 3 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 DCHECK(m_metadata.get()); 70 DCHECK(m_metadata.get());
71 } 71 }
72 72
73 DEFINE_TRACE(IDBObjectStore) { 73 DEFINE_TRACE(IDBObjectStore) {
74 visitor->trace(m_transaction); 74 visitor->trace(m_transaction);
75 visitor->trace(m_indexMap); 75 visitor->trace(m_indexMap);
76 } 76 }
77 77
78 void IDBObjectStore::setName(const String& name, 78 void IDBObjectStore::setName(const String& name,
79 ExceptionState& exceptionState) { 79 ExceptionState& exceptionState) {
80 if (!RuntimeEnabledFeatures::indexedDBExperimentalEnabled())
81 return;
82
83 IDB_TRACE("IDBObjectStore::setName"); 80 IDB_TRACE("IDBObjectStore::setName");
84 if (!m_transaction->isVersionChange()) { 81 if (!m_transaction->isVersionChange()) {
85 exceptionState.throwDOMException( 82 exceptionState.throwDOMException(
86 InvalidStateError, 83 InvalidStateError,
87 IDBDatabase::notVersionChangeTransactionErrorMessage); 84 IDBDatabase::notVersionChangeTransactionErrorMessage);
88 return; 85 return;
89 } 86 }
90 if (isDeleted()) { 87 if (isDeleted()) {
91 exceptionState.throwDOMException( 88 exceptionState.throwDOMException(
92 InvalidStateError, IDBDatabase::objectStoreDeletedErrorMessage); 89 InvalidStateError, IDBDatabase::objectStoreDeletedErrorMessage);
(...skipping 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after
1111 } 1108 }
1112 } 1109 }
1113 return IDBIndexMetadata::InvalidId; 1110 return IDBIndexMetadata::InvalidId;
1114 } 1111 }
1115 1112
1116 WebIDBDatabase* IDBObjectStore::backendDB() const { 1113 WebIDBDatabase* IDBObjectStore::backendDB() const {
1117 return m_transaction->backendDB(); 1114 return m_transaction->backendDB();
1118 } 1115 }
1119 1116
1120 } // namespace blink 1117 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698