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

Side by Side Diff: chrome/browser/profile_resetter/triggered_profile_resetter.cc

Issue 1294923003: Add a triggered profile reset mechanism. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: grt nits, UMA histogram Created 5 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/profile_resetter/triggered_profile_resetter.h"
6
7 #include "chrome/browser/profiles/profile.h"
8
9 TriggeredProfileResetter::TriggeredProfileResetter(Profile* profile)
10 : profile_(profile) {}
11
12 TriggeredProfileResetter::~TriggeredProfileResetter() {}
13
14 bool TriggeredProfileResetter::HasResetTrigger() {
15 #if DCHECK_IS_ON()
grt (UTC plus 2) 2015/09/13 13:30:51 Is this needed? It looks redundant.
robertshield 2015/09/14 14:27:36 Yes, otherwise the activate_called_ symbol is unde
16 DCHECK(activate_called_);
17 #endif
18 return has_reset_trigger_;
19 }
20
21 base::string16 TriggeredProfileResetter::GetResetToolName() {
22 return tool_name_;
23 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698