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

Unified Diff: content/common/indexed_db_param_traits.cc

Issue 8276023: IndexedDB: Wrong exception types thrown for invalid keys (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Updated copyright years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/indexed_db_key.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/indexed_db_param_traits.cc
diff --git a/content/common/indexed_db_param_traits.cc b/content/common/indexed_db_param_traits.cc
index 52340bae8b0a423fa899568984e54e8beed50151..326efbc78f8a71a5d3fc4dbdadb888546934d013 100644
--- a/content/common/indexed_db_param_traits.cc
+++ b/content/common/indexed_db_param_traits.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -70,9 +70,6 @@ bool ParamTraits<IndexedDBKey>::Read(const Message* m,
if (!ok)
return false;
switch (type) {
- case WebKit::WebIDBKey::NullType:
- r->SetNull();
- return true;
case WebKit::WebIDBKey::StringType:
r->SetString(string);
return true;
@@ -83,6 +80,7 @@ bool ParamTraits<IndexedDBKey>::Read(const Message* m,
r->SetNumber(number);
return true;
case WebKit::WebIDBKey::InvalidType:
+ default: // TODO(jsbell): Remove this case label once NullType is gone
r->SetInvalid();
return true;
}
« no previous file with comments | « content/common/indexed_db_key.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698