| OLD | NEW |
| 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/managed_mode/permission_request_creator_apiary.h" | 5 #include "chrome/browser/supervised_user/permission_request_creator_apiary.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
| 10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 15 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 void PermissionRequestCreatorApiary::DispatchNetworkError(int error_code) { | 160 void PermissionRequestCreatorApiary::DispatchNetworkError(int error_code) { |
| 161 DispatchGoogleServiceAuthError( | 161 DispatchGoogleServiceAuthError( |
| 162 GoogleServiceAuthError::FromConnectionError(error_code)); | 162 GoogleServiceAuthError::FromConnectionError(error_code)); |
| 163 } | 163 } |
| 164 | 164 |
| 165 void PermissionRequestCreatorApiary::DispatchGoogleServiceAuthError( | 165 void PermissionRequestCreatorApiary::DispatchGoogleServiceAuthError( |
| 166 const GoogleServiceAuthError& error) { | 166 const GoogleServiceAuthError& error) { |
| 167 callback_.Run(); | 167 callback_.Run(); |
| 168 callback_.Reset(); | 168 callback_.Reset(); |
| 169 } | 169 } |
| OLD | NEW |