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

Side by Side Diff: chrome/browser/chromeos/upgrade_detector_chromeos.h

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: iwyu fixes Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_UPGRADE_DETECTOR_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_UPGRADE_DETECTOR_CHROMEOS_H_
6 #define CHROME_BROWSER_CHROMEOS_UPGRADE_DETECTOR_CHROMEOS_H_ 6 #define CHROME_BROWSER_CHROMEOS_UPGRADE_DETECTOR_CHROMEOS_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 void OnChannelsReceived(const std::string& current_channel, 50 void OnChannelsReceived(const std::string& current_channel,
51 const std::string& target_channel); 51 const std::string& target_channel);
52 52
53 // After we detect an upgrade we start a recurring timer to see if enough time 53 // After we detect an upgrade we start a recurring timer to see if enough time
54 // has passed and we should start notifying the user. 54 // has passed and we should start notifying the user.
55 base::RepeatingTimer upgrade_notification_timer_; 55 base::RepeatingTimer upgrade_notification_timer_;
56 bool initialized_; 56 bool initialized_;
57 base::Time upgrade_detected_time_; 57 base::Time upgrade_detected_time_;
58 58
59 scoped_ptr<ChannelsRequester> channels_requester_; 59 std::unique_ptr<ChannelsRequester> channels_requester_;
60 60
61 base::WeakPtrFactory<UpgradeDetectorChromeos> weak_factory_; 61 base::WeakPtrFactory<UpgradeDetectorChromeos> weak_factory_;
62 62
63 DISALLOW_COPY_AND_ASSIGN(UpgradeDetectorChromeos); 63 DISALLOW_COPY_AND_ASSIGN(UpgradeDetectorChromeos);
64 }; 64 };
65 65
66 #endif // CHROME_BROWSER_CHROMEOS_UPGRADE_DETECTOR_CHROMEOS_H_ 66 #endif // CHROME_BROWSER_CHROMEOS_UPGRADE_DETECTOR_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698