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

Unified Diff: chrome/browser/ui/ash/screenshot_taker.h

Issue 572853002: Realigning the WeakPtrFactory initialization order in chrome/ui folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed mac error Created 6 years, 3 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 | « chrome/browser/ui/app_list/search/people/people_result.h ('k') | chrome/browser/ui/ash/screenshot_taker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/screenshot_taker.h
diff --git a/chrome/browser/ui/ash/screenshot_taker.h b/chrome/browser/ui/ash/screenshot_taker.h
index 8312ccb22f6f535ceca317ab72704cfe5c7444da..15865081deec17af8aad7eb002441eed08cc69b5 100644
--- a/chrome/browser/ui/ash/screenshot_taker.h
+++ b/chrome/browser/ui/ash/screenshot_taker.h
@@ -98,8 +98,6 @@ class ScreenshotTaker : public ash::ScreenshotDelegate {
const base::FilePath& screenshot_path);
#endif
- base::WeakPtrFactory<ScreenshotTaker> factory_;
-
// The timestamp when the screenshot task was issued last time.
base::Time last_screenshot_timestamp_;
@@ -109,6 +107,8 @@ class ScreenshotTaker : public ash::ScreenshotDelegate {
std::string screenshot_basename_for_test_;
Profile* profile_for_test_;
+ base::WeakPtrFactory<ScreenshotTaker> factory_;
+
DISALLOW_COPY_AND_ASSIGN(ScreenshotTaker);
};
« no previous file with comments | « chrome/browser/ui/app_list/search/people/people_result.h ('k') | chrome/browser/ui/ash/screenshot_taker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698