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

Side by Side Diff: content/common/indexed_db/indexed_db_key.cc

Issue 9117040: Prep for landing WK76487 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move default: label to last, add bug URL to TODO comment Created 8 years, 11 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
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 "content/common/indexed_db/indexed_db_key.h" 5 #include "content/common/indexed_db/indexed_db_key.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" 8 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
9 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" 9 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h"
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 switch (type_) { 65 switch (type_) {
66 case WebIDBKey::ArrayType: 66 case WebIDBKey::ArrayType:
67 return WebIDBKey::createArray(array_); 67 return WebIDBKey::createArray(array_);
68 case WebIDBKey::StringType: 68 case WebIDBKey::StringType:
69 return WebIDBKey::createString(string_); 69 return WebIDBKey::createString(string_);
70 case WebIDBKey::DateType: 70 case WebIDBKey::DateType:
71 return WebIDBKey::createDate(date_); 71 return WebIDBKey::createDate(date_);
72 case WebIDBKey::NumberType: 72 case WebIDBKey::NumberType:
73 return WebIDBKey::createNumber(number_); 73 return WebIDBKey::createNumber(number_);
74 case WebIDBKey::InvalidType: 74 case WebIDBKey::InvalidType:
75 default:
76 // TODO(jsbell): Remove "default" label once WebKit bug 76487 has rolled.
77 // http://crbug.com/110956
75 return WebIDBKey::createInvalid(); 78 return WebIDBKey::createInvalid();
76 } 79 }
77 NOTREACHED(); 80 NOTREACHED();
78 return WebIDBKey::createInvalid(); 81 return WebIDBKey::createInvalid();
79 } 82 }
OLDNEW
« no previous file with comments | « content/browser/indexed_db/idbbindingutilities_browsertest.cc ('k') | content/common/indexed_db/indexed_db_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698