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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/kiosk_app_menu_handler.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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_UI_WEBUI_CHROMEOS_LOGIN_KIOSK_APP_MENU_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_KIOSK_APP_MENU_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_KIOSK_APP_MENU_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_KIOSK_APP_MENU_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 void HandleKioskAppsLoaded(const base::ListValue* args); 46 void HandleKioskAppsLoaded(const base::ListValue* args);
47 void HandleCheckKioskAppLaunchError(const base::ListValue* args); 47 void HandleCheckKioskAppLaunchError(const base::ListValue* args);
48 48
49 // KioskAppManagerObserver overrides: 49 // KioskAppManagerObserver overrides:
50 virtual void OnKioskAppsSettingsChanged() OVERRIDE; 50 virtual void OnKioskAppsSettingsChanged() OVERRIDE;
51 virtual void OnKioskAppDataChanged(const std::string& app_id) OVERRIDE; 51 virtual void OnKioskAppDataChanged(const std::string& app_id) OVERRIDE;
52 52
53 // NetworkStateInformer::NetworkStateInformerObserver overrides: 53 // NetworkStateInformer::NetworkStateInformerObserver overrides:
54 virtual void UpdateState(ErrorScreenActor::ErrorReason reason) OVERRIDE; 54 virtual void UpdateState(ErrorScreenActor::ErrorReason reason) OVERRIDE;
55 55
56 base::WeakPtrFactory<KioskAppMenuHandler> weak_ptr_factory_;
57
58 // True when WebUI is initialized. Otherwise don't allow calling JS functions. 56 // True when WebUI is initialized. Otherwise don't allow calling JS functions.
59 bool is_webui_initialized_; 57 bool is_webui_initialized_;
60 58
61 scoped_refptr<NetworkStateInformer> network_state_informer_; 59 scoped_refptr<NetworkStateInformer> network_state_informer_;
62 60
61 base::WeakPtrFactory<KioskAppMenuHandler> weak_ptr_factory_;
62
63 DISALLOW_COPY_AND_ASSIGN(KioskAppMenuHandler); 63 DISALLOW_COPY_AND_ASSIGN(KioskAppMenuHandler);
64 }; 64 };
65 65
66 } // namespace chromeos 66 } // namespace chromeos
67 67
68 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_KIOSK_APP_MENU_HANDLER_H_ 68 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_KIOSK_APP_MENU_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/status_bubble_mac.mm ('k') | chrome/browser/ui/webui/chromeos/login/kiosk_app_menu_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698