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

Side by Side Diff: chrome/browser/chromeos/login/easy_unlock/short_lived_user_context.cc

Issue 2729503007: Remove Profile usage from //apps (Closed)
Patch Set: deps Created 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/login/easy_unlock/short_lived_user_context.h" 5 #include "chrome/browser/chromeos/login/easy_unlock/short_lived_user_context.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 30 matching lines...) Expand all
41 } 41 }
42 42
43 void ShortLivedUserContext::Reset() { 43 void ShortLivedUserContext::Reset() {
44 if (user_context_.get()) { 44 if (user_context_.get()) {
45 user_context_->ClearSecrets(); 45 user_context_->ClearSecrets();
46 user_context_.reset(); 46 user_context_.reset();
47 app_lifetime_monitor_->RemoveObserver(this); 47 app_lifetime_monitor_->RemoveObserver(this);
48 } 48 }
49 } 49 }
50 50
51 void ShortLivedUserContext::OnAppDeactivated(Profile* profile, 51 void ShortLivedUserContext::OnAppDeactivated(content::BrowserContext* context,
52 const std::string& app_id) { 52 const std::string& app_id) {
53 if (app_id == extension_misc::kEasyUnlockAppId) 53 if (app_id == extension_misc::kEasyUnlockAppId)
54 Reset(); 54 Reset();
55 } 55 }
56 56
57 } // namespace chromeos 57 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/easy_unlock/short_lived_user_context.h ('k') | chrome/browser/chromeos/note_taking_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698