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

Unified Diff: chrome/browser/managed_mode/managed_user_registration_utility_stub.cc

Issue 335833003: Rename "managed (mode|user)" to "supervised user" (part 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments (+ a few other cleanups) Created 6 years, 6 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/managed_mode/managed_user_registration_utility_stub.cc
diff --git a/chrome/browser/managed_mode/managed_user_registration_utility_stub.cc b/chrome/browser/managed_mode/managed_user_registration_utility_stub.cc
deleted file mode 100644
index 114964973ac5d11316027d9350a15557d2b69d6c..0000000000000000000000000000000000000000
--- a/chrome/browser/managed_mode/managed_user_registration_utility_stub.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2013 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/managed_mode/managed_user_registration_utility_stub.h"
-
-#include "base/bind.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/strings/utf_string_conversions.h"
-#include "google_apis/gaia/gaia_urls.h"
-#include "google_apis/gaia/google_service_auth_error.h"
-
-ManagedUserRegistrationUtilityStub::ManagedUserRegistrationUtilityStub()
- : register_was_called_(false) {
-}
-
-ManagedUserRegistrationUtilityStub::~ManagedUserRegistrationUtilityStub() {
-}
-
-void ManagedUserRegistrationUtilityStub::Register(
- const std::string& managed_user_id,
- const ManagedUserRegistrationInfo& info,
- const RegistrationCallback& callback) {
- DCHECK(!register_was_called_);
- register_was_called_ = true;
- callback_ = callback;
- managed_user_id_ = managed_user_id;
- display_name_ = info.name;
- master_key_ = info.master_key;
-}
-
-void ManagedUserRegistrationUtilityStub::RunSuccessCallback(
- const std::string& token) {
- if (callback_.is_null())
- return;
- callback_.Run(GoogleServiceAuthError(GoogleServiceAuthError::NONE), token);
- callback_.Reset();
-}
-
-void ManagedUserRegistrationUtilityStub::RunFailureCallback(
- const GoogleServiceAuthError::State state) {
- if (callback_.is_null())
- return;
- GoogleServiceAuthError error(state);
- callback_.Run(error, std::string());
- callback_.Reset();
-}

Powered by Google App Engine
This is Rietveld 408576698