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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/profile_resetter/triggered_profile_resetter.cc
diff --git a/chrome/browser/profile_resetter/triggered_profile_resetter.cc b/chrome/browser/profile_resetter/triggered_profile_resetter.cc
new file mode 100644
index 0000000000000000000000000000000000000000..8df11534ca887211b545e2da42d4d3a36792441b
--- /dev/null
+++ b/chrome/browser/profile_resetter/triggered_profile_resetter.cc
@@ -0,0 +1,23 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/profile_resetter/triggered_profile_resetter.h"
+
+#include "chrome/browser/profiles/profile.h"
+
+TriggeredProfileResetter::TriggeredProfileResetter(Profile* profile)
+ : profile_(profile) {}
+
+TriggeredProfileResetter::~TriggeredProfileResetter() {}
+
+bool TriggeredProfileResetter::HasResetTrigger() {
+#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
+ DCHECK(activate_called_);
+#endif
+ return has_reset_trigger_;
+}
+
+base::string16 TriggeredProfileResetter::GetResetToolName() {
+ return tool_name_;
+}

Powered by Google App Engine
This is Rietveld 408576698