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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorHistory.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/inspector/InspectorHistory.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorHistory.cpp b/third_party/WebKit/Source/core/inspector/InspectorHistory.cpp
index 3f672a5dc00b9b3ae0a53f6074a96bbfb34d831a..059523290479fd3e1101017ee225b3b6b52daa90 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorHistory.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorHistory.cpp
@@ -80,13 +80,13 @@ String InspectorHistory::Action::mergeId()
return "";
}
-void InspectorHistory::Action::merge(PassRefPtrWillBeRawPtr<Action>)
+void InspectorHistory::Action::merge(RawPtr<Action>)
{
}
InspectorHistory::InspectorHistory() : m_afterLastActionIndex(0) { }
-bool InspectorHistory::perform(PassRefPtrWillBeRawPtr<Action> action, ExceptionState& exceptionState)
+bool InspectorHistory::perform(RawPtr<Action> action, ExceptionState& exceptionState)
{
if (!action->perform(exceptionState))
return false;
@@ -94,7 +94,7 @@ bool InspectorHistory::perform(PassRefPtrWillBeRawPtr<Action> action, ExceptionS
return true;
}
-void InspectorHistory::appendPerformedAction(PassRefPtrWillBeRawPtr<Action> action)
+void InspectorHistory::appendPerformedAction(RawPtr<Action> action)
{
if (!action->mergeId().isEmpty() && m_afterLastActionIndex > 0 && action->mergeId() == m_history[m_afterLastActionIndex - 1]->mergeId()) {
m_history[m_afterLastActionIndex - 1]->merge(action);
@@ -110,7 +110,7 @@ void InspectorHistory::appendPerformedAction(PassRefPtrWillBeRawPtr<Action> acti
void InspectorHistory::markUndoableState()
{
- perform(adoptRefWillBeNoop(new UndoableStateMark()), IGNORE_EXCEPTION);
+ perform(new UndoableStateMark(), IGNORE_EXCEPTION);
}
bool InspectorHistory::undo(ExceptionState& exceptionState)

Powered by Google App Engine
This is Rietveld 408576698