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

Side by Side Diff: chrome/browser/chromeos/status/network_menu_button.h

Issue 8351021: Use Closure instead of ScopedRunnableMethodFactory in NetworkMenuButton. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: weak_ptr_factory_ Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/status/network_menu_button.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_STATUS_NETWORK_MENU_BUTTON_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_
6 #define CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ 6 #define CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/task.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/timer.h" 12 #include "base/timer.h"
13 #include "chrome/browser/chromeos/cros/network_library.h" 13 #include "chrome/browser/chromeos/cros/network_library.h"
14 #include "chrome/browser/chromeos/login/message_bubble.h" 14 #include "chrome/browser/chromeos/login/message_bubble.h"
15 #include "chrome/browser/chromeos/mobile_config.h" 15 #include "chrome/browser/chromeos/mobile_config.h"
16 #include "chrome/browser/chromeos/status/network_menu.h" 16 #include "chrome/browser/chromeos/status/network_menu.h"
17 #include "chrome/browser/chromeos/status/network_menu_icon.h" 17 #include "chrome/browser/chromeos/status/network_menu_icon.h"
18 #include "chrome/browser/chromeos/status/status_area_button.h" 18 #include "chrome/browser/chromeos/status/status_area_button.h"
19 19
20 class PrefService; 20 class PrefService;
21 21
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // whose status is displayed in the network menu button. 153 // whose status is displayed in the network menu button.
154 std::string active_network_; 154 std::string active_network_;
155 155
156 // Current carrier deal info URL. 156 // Current carrier deal info URL.
157 std::string deal_info_url_; 157 std::string deal_info_url_;
158 158
159 // Current carrier deal top-up URL. 159 // Current carrier deal top-up URL.
160 std::string deal_topup_url_; 160 std::string deal_topup_url_;
161 161
162 // Factory for delaying showing promo notification. 162 // Factory for delaying showing promo notification.
163 ScopedRunnableMethodFactory<NetworkMenuButton> method_factory_; 163 base::WeakPtrFactory<NetworkMenuButton> weak_ptr_factory_;
164 164
165 DISALLOW_COPY_AND_ASSIGN(NetworkMenuButton); 165 DISALLOW_COPY_AND_ASSIGN(NetworkMenuButton);
166 }; 166 };
167 167
168 } // namespace chromeos 168 } // namespace chromeos
169 169
170 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ 170 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/status/network_menu_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698