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

Side by Side Diff: chrome/browser/chromeos/settings/session_manager_operation.cc

Issue 572873002: Declaring the weak_ptr_factory in proper order. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build break fixed 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 #include "chrome/browser/chromeos/settings/session_manager_operation.h" 5 #include "chrome/browser/chromeos/settings/session_manager_operation.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 11 matching lines...) Expand all
22 22
23 using ownership::OwnerKeyUtil; 23 using ownership::OwnerKeyUtil;
24 using ownership::PublicKey; 24 using ownership::PublicKey;
25 25
26 namespace em = enterprise_management; 26 namespace em = enterprise_management;
27 27
28 namespace chromeos { 28 namespace chromeos {
29 29
30 SessionManagerOperation::SessionManagerOperation(const Callback& callback) 30 SessionManagerOperation::SessionManagerOperation(const Callback& callback)
31 : session_manager_client_(NULL), 31 : session_manager_client_(NULL),
32 weak_factory_(this),
33 callback_(callback), 32 callback_(callback),
34 force_key_load_(false), 33 force_key_load_(false),
35 is_loading_(false) {} 34 is_loading_(false),
35 weak_factory_(this) {}
36 36
37 SessionManagerOperation::~SessionManagerOperation() {} 37 SessionManagerOperation::~SessionManagerOperation() {}
38 38
39 void SessionManagerOperation::Start( 39 void SessionManagerOperation::Start(
40 SessionManagerClient* session_manager_client, 40 SessionManagerClient* session_manager_client,
41 scoped_refptr<OwnerKeyUtil> owner_key_util, 41 scoped_refptr<OwnerKeyUtil> owner_key_util,
42 scoped_refptr<PublicKey> public_key) { 42 scoped_refptr<PublicKey> public_key) {
43 session_manager_client_ = session_manager_client; 43 session_manager_client_ = session_manager_client;
44 owner_key_util_ = owner_key_util; 44 owner_key_util_ = owner_key_util;
45 public_key_ = public_key; 45 public_key_ = public_key;
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 } 291 }
292 292
293 void SignAndStoreSettingsOperation::HandleStoreResult(bool success) { 293 void SignAndStoreSettingsOperation::HandleStoreResult(bool success) {
294 if (!success) 294 if (!success)
295 ReportResult(DeviceSettingsService::STORE_OPERATION_FAILED); 295 ReportResult(DeviceSettingsService::STORE_OPERATION_FAILED);
296 else 296 else
297 StartLoading(); 297 StartLoading();
298 } 298 }
299 299
300 } // namespace chromeos 300 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698