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

Unified Diff: Source/core/page/Page.h

Issue 225393002: Apply OwnPtr|PassOwnPtr to m_validationMessageClient and setValidationMessageClient() in Page class (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « Source/core/html/forms/ValidationMessage.cpp ('k') | Source/core/page/Page.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/Page.h
diff --git a/Source/core/page/Page.h b/Source/core/page/Page.h
index 7248f896cdda0553437183aaccddba16f8fc5dfa..41869d9103be4c39fcd12c1706d8c42dc7f46277 100644
--- a/Source/core/page/Page.h
+++ b/Source/core/page/Page.h
@@ -151,8 +151,8 @@ public:
ContextMenuController& contextMenuController() const { return *m_contextMenuController; }
InspectorController& inspectorController() const { return *m_inspectorController; }
PointerLockController& pointerLockController() const { return *m_pointerLockController; }
- ValidationMessageClient* validationMessageClient() const { return m_validationMessageClient; }
- void setValidationMessageClient(ValidationMessageClient* client) { m_validationMessageClient = client; }
+ ValidationMessageClient& validationMessageClient() const { return *m_validationMessageClient; }
+ void setValidationMessageClient(PassOwnPtr<ValidationMessageClient>);
ScrollingCoordinator* scrollingCoordinator();
@@ -258,9 +258,9 @@ private:
BackForwardClient* m_backForwardClient;
EditorClient* const m_editorClient;
- ValidationMessageClient* m_validationMessageClient;
SpellCheckerClient* const m_spellCheckerClient;
StorageClient* m_storageClient;
+ OwnPtr<ValidationMessageClient> m_validationMessageClient;
UseCounter m_useCounter;
« no previous file with comments | « Source/core/html/forms/ValidationMessage.cpp ('k') | Source/core/page/Page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698