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

Side by Side Diff: third_party/WebKit/Source/core/frame/Location.cpp

Issue 2585283002: Migrate WTF::Vector::append() to ::push_back() [part 6 of N] (Closed)
Patch Set: Created 4 years 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) 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2010 Apple 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 } 291 }
292 292
293 if (m_frame->domWindow()->isInsecureScriptAccess(*currentWindow, 293 if (m_frame->domWindow()->isInsecureScriptAccess(*currentWindow,
294 completedURL)) 294 completedURL))
295 return; 295 return;
296 296
297 V8DOMActivityLogger* activityLogger = 297 V8DOMActivityLogger* activityLogger =
298 V8DOMActivityLogger::currentActivityLoggerIfIsolatedWorld(); 298 V8DOMActivityLogger::currentActivityLoggerIfIsolatedWorld();
299 if (activityLogger) { 299 if (activityLogger) {
300 Vector<String> argv; 300 Vector<String> argv;
301 argv.append("LocalDOMWindow"); 301 argv.push_back("LocalDOMWindow");
302 argv.append("url"); 302 argv.push_back("url");
303 argv.append(enteredDocument->url()); 303 argv.push_back(enteredDocument->url());
304 argv.append(completedURL); 304 argv.push_back(completedURL);
305 activityLogger->logEvent("blinkSetAttribute", argv.size(), argv.data()); 305 activityLogger->logEvent("blinkSetAttribute", argv.size(), argv.data());
306 } 306 }
307 m_frame->navigate(*currentWindow->document(), completedURL, 307 m_frame->navigate(*currentWindow->document(), completedURL,
308 locationPolicy == SetLocation::ReplaceThisFrame, 308 locationPolicy == SetLocation::ReplaceThisFrame,
309 UserGestureStatus::None); 309 UserGestureStatus::None);
310 } 310 }
311 311
312 } // namespace blink 312 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp ('k') | third_party/WebKit/Source/core/frame/Navigator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698