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

Side by Side Diff: third_party/WebKit/Source/modules/notifications/NotificationData.cpp

Issue 2614663008: Migrate WTF::Vector::append() to ::push_back() [part 13 of N] (Closed)
Patch Set: Created 3 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "modules/notifications/NotificationData.h" 5 #include "modules/notifications/NotificationData.h"
6 6
7 #include "bindings/core/v8/ExceptionState.h" 7 #include "bindings/core/v8/ExceptionState.h"
8 #include "bindings/core/v8/SerializedScriptValue.h" 8 #include "bindings/core/v8/SerializedScriptValue.h"
9 #include "bindings/core/v8/SerializedScriptValueFactory.h" 9 #include "bindings/core/v8/SerializedScriptValueFactory.h"
10 #include "core/dom/ExecutionContext.h" 10 #include "core/dom/ExecutionContext.h"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 exceptionState.throwTypeError( 121 exceptionState.throwTypeError(
122 "Notifications of type \"button\" cannot specify a placeholder."); 122 "Notifications of type \"button\" cannot specify a placeholder.");
123 return WebNotificationData(); 123 return WebNotificationData();
124 } 124 }
125 125
126 webAction.placeholder = action.placeholder(); 126 webAction.placeholder = action.placeholder();
127 127
128 if (action.hasIcon() && !action.icon().isEmpty()) 128 if (action.hasIcon() && !action.icon().isEmpty())
129 webAction.icon = completeURL(executionContext, action.icon()); 129 webAction.icon = completeURL(executionContext, action.icon());
130 130
131 actions.append(webAction); 131 actions.push_back(webAction);
132 } 132 }
133 133
134 webData.actions = actions; 134 webData.actions = actions;
135 135
136 return webData; 136 return webData;
137 } 137 }
138 138
139 } // namespace blink 139 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698