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

Unified Diff: ash/accelerators/accelerator_controller.cc

Issue 9240002: Change the signature of SetScreenshotDelegate() to show ownership transfer more clearly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/accelerators/accelerator_controller.h ('k') | ash/accelerators/accelerator_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_controller.cc
diff --git a/ash/accelerators/accelerator_controller.cc b/ash/accelerators/accelerator_controller.cc
index 2a48859b43d2f6f3a97d225fbdb80b3bf8040897..8a736d3f740060dce75d8c272c9b93102db0d0e5 100644
--- a/ash/accelerators/accelerator_controller.cc
+++ b/ash/accelerators/accelerator_controller.cc
@@ -162,8 +162,8 @@ bool AcceleratorController::Process(const ui::Accelerator& accelerator) {
}
void AcceleratorController::SetScreenshotDelegate(
- ScreenshotDelegate* screenshot_delegate) {
- screenshot_delegate_.reset(screenshot_delegate);
+ scoped_ptr<ScreenshotDelegate> screenshot_delegate) {
+ screenshot_delegate_.swap(screenshot_delegate);
}
void AcceleratorController::SetCapsLockDelegate(
« no previous file with comments | « ash/accelerators/accelerator_controller.h ('k') | ash/accelerators/accelerator_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698