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

Side by Side Diff: third_party/WebKit/Source/core/page/ContextMenuController.cpp

Issue 1828163002: Remove ASSERT_ARG(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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) 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Igalia S.L 3 * Copyright (C) 2010 Igalia S.L
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
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 29 matching lines...) Expand all
40 #include "platform/ContextMenu.h" 40 #include "platform/ContextMenu.h"
41 #include "platform/ContextMenuItem.h" 41 #include "platform/ContextMenuItem.h"
42 42
43 namespace blink { 43 namespace blink {
44 44
45 using namespace HTMLNames; 45 using namespace HTMLNames;
46 46
47 ContextMenuController::ContextMenuController(Page*, ContextMenuClient* client) 47 ContextMenuController::ContextMenuController(Page*, ContextMenuClient* client)
48 : m_client(client) 48 : m_client(client)
49 { 49 {
50 ASSERT_ARG(client, client); 50 DCHECK(client);
51 } 51 }
52 52
53 ContextMenuController::~ContextMenuController() 53 ContextMenuController::~ContextMenuController()
54 { 54 {
55 } 55 }
56 56
57 PassOwnPtrWillBeRawPtr<ContextMenuController> ContextMenuController::create(Page * page, ContextMenuClient* client) 57 PassOwnPtrWillBeRawPtr<ContextMenuController> ContextMenuController::create(Page * page, ContextMenuClient* client)
58 { 58 {
59 return adoptPtrWillBeNoop(new ContextMenuController(page, client)); 59 return adoptPtrWillBeNoop(new ContextMenuController(page, client));
60 } 60 }
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 ASSERT(item->type() == ActionType || item->type() == CheckableActionType); 183 ASSERT(item->type() == ActionType || item->type() == CheckableActionType);
184 184
185 if (item->action() < ContextMenuItemBaseCustomTag || item->action() > Contex tMenuItemLastCustomTag) 185 if (item->action() < ContextMenuItemBaseCustomTag || item->action() > Contex tMenuItemLastCustomTag)
186 return; 186 return;
187 187
188 ASSERT(m_menuProvider); 188 ASSERT(m_menuProvider);
189 m_menuProvider->contextMenuItemSelected(item); 189 m_menuProvider->contextMenuItemSelected(item);
190 } 190 }
191 191
192 } // namespace blink 192 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698