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

Unified Diff: chrome/browser/chrome_browser_main_extra_parts_aura.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_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main_extra_parts_aura.cc
diff --git a/chrome/browser/chrome_browser_main_extra_parts_aura.cc b/chrome/browser/chrome_browser_main_extra_parts_aura.cc
index fca681202023a2618f3e10bc32196a27729cbae6..ec2da9b312d752804c3b4a6f5b0a57e967f91876 100644
--- a/chrome/browser/chrome_browser_main_extra_parts_aura.cc
+++ b/chrome/browser/chrome_browser_main_extra_parts_aura.cc
@@ -43,8 +43,8 @@ void ChromeBrowserMainExtraPartsAura::PreProfileInit() {
// Shell takes ownership of ChromeShellDelegate.
ash::Shell* shell = ash::Shell::CreateInstance(new ChromeShellDelegate);
- // AcceleratorController takes ownership of ScreenshotDelegate.
- shell->accelerator_controller()->SetScreenshotDelegate(new ScreenshotTaker);
+ shell->accelerator_controller()->SetScreenshotDelegate(
+ scoped_ptr<ash::ScreenshotDelegate>(new ScreenshotTaker).Pass());
// Make sure the singleton ScreenOrientationListener object is created.
ScreenOrientationListener::GetInstance();
« no previous file with comments | « ash/accelerators/accelerator_controller_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698