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

Side by Side Diff: chrome/browser/printing/cloud_print/cloud_print_proxy_service.h

Issue 575993002: Fix WeakPtrFactory member ordering in chrome/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 (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_PRINTING_CLOUD_PRINT_CLOUD_PRINT_PROXY_SERVICE_H_ 5 #ifndef CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_PROXY_SERVICE_H_
6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_PROXY_SERVICE_H_ 6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_PROXY_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // Checks the policy. Returns true if nothing needs to be done (the policy is 89 // Checks the policy. Returns true if nothing needs to be done (the policy is
90 // not set or the connector is not enabled). 90 // not set or the connector is not enabled).
91 bool ApplyCloudPrintConnectorPolicy(); 91 bool ApplyCloudPrintConnectorPolicy();
92 92
93 Profile* profile_; 93 Profile* profile_;
94 std::string proxy_id_; 94 std::string proxy_id_;
95 95
96 // Virtual for testing. 96 // Virtual for testing.
97 virtual ServiceProcessControl* GetServiceProcessControl(); 97 virtual ServiceProcessControl* GetServiceProcessControl();
98 98
99 base::WeakPtrFactory<CloudPrintProxyService> weak_factory_;
100
101 // For watching for connector policy changes. 99 // For watching for connector policy changes.
102 PrefChangeRegistrar pref_change_registrar_; 100 PrefChangeRegistrar pref_change_registrar_;
103 101
104 // If set, continue trying to disable the connector, and quit the process 102 // If set, continue trying to disable the connector, and quit the process
105 // once successful. 103 // once successful.
106 bool enforcing_connector_policy_; 104 bool enforcing_connector_policy_;
107 105
106 base::WeakPtrFactory<CloudPrintProxyService> weak_factory_;
107
108 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxyService); 108 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxyService);
109 }; 109 };
110 110
111 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_PROXY_SERVICE_H_ 111 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_PROXY_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698