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

Unified Diff: blimp/client/app/android/blimp_client_context_delegate_android.cc

Issue 2624903006: Remove all blimp client code. (Closed)
Patch Set: Update buildbot configuration Created 3 years, 11 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: blimp/client/app/android/blimp_client_context_delegate_android.cc
diff --git a/blimp/client/app/android/blimp_client_context_delegate_android.cc b/blimp/client/app/android/blimp_client_context_delegate_android.cc
deleted file mode 100644
index 858f633d5f200fea4e70a04e6cb0a671a8511d04..0000000000000000000000000000000000000000
--- a/blimp/client/app/android/blimp_client_context_delegate_android.cc
+++ /dev/null
@@ -1,86 +0,0 @@
-// Copyright 2016 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 "blimp/client/app/android/blimp_client_context_delegate_android.h"
-
-#include "base/memory/ptr_util.h"
-#include "base/strings/string_number_conversions.h"
-#include "base/strings/utf_string_conversions.h"
-#include "blimp/client/public/blimp_client_context.h"
-#include "blimp/client/public/blimp_client_context_delegate.h"
-#include "blimp/client/public/contents/blimp_contents.h"
-#include "blimp/client/public/resources/blimp_strings.h"
-#include "blimp/client/support/resources/blimp_strings.h"
-#include "blimp/client/support/session/blimp_default_identity_provider.h"
-#include "components/signin/core/browser/profile_identity_provider.h"
-#include "components/signin/core/browser/signin_manager.h"
-#include "net/base/net_errors.h"
-#include "ui/base/l10n/l10n_util.h"
-
-namespace blimp {
-namespace client {
-
-BlimpClientContextDelegateAndroid::BlimpClientContextDelegateAndroid(
- BlimpClientContext* blimp_client_context)
- : blimp_client_context_(blimp_client_context) {
- blimp_client_context_->SetDelegate(this);
-}
-
-BlimpClientContextDelegateAndroid::~BlimpClientContextDelegateAndroid() {
- blimp_client_context_->SetDelegate(nullptr);
-}
-
-void BlimpClientContextDelegateAndroid::AttachBlimpContentsHelpers(
- BlimpContents* blimp_contents) {}
-
-void BlimpClientContextDelegateAndroid::OnAssignmentConnectionAttempted(
- AssignmentRequestResult result,
- const Assignment& assignment) {
- if (result == blimp::client::ASSIGNMENT_REQUEST_RESULT_OK)
- return;
- base::string16 message = blimp::string::BlimpPrefix(
- blimp::string::AssignmentResultErrorToString(result));
- ShowMessage(message);
-}
-
-std::unique_ptr<IdentityProvider>
-BlimpClientContextDelegateAndroid::CreateIdentityProvider() {
- return base::MakeUnique<BlimpDefaultIdentityProvider>();
-}
-
-void BlimpClientContextDelegateAndroid::OnAuthenticationError(
- const GoogleServiceAuthError& error) {
- LOG(ERROR) << "GoogleAuth error : " << error.ToString();
- base::string16 message = blimp::string::BlimpPrefix(
- l10n_util::GetStringUTF16(IDS_BLIMP_SIGNIN_GET_TOKEN_FAILED));
- ShowMessage(message);
-}
-
-void BlimpClientContextDelegateAndroid::OnConnected() {
- base::string16 message = blimp::string::BlimpPrefix(
- l10n_util::GetStringUTF16(IDS_BLIMP_NETWORK_CONNECTED));
- ShowMessage(message);
-}
-
-void BlimpClientContextDelegateAndroid::OnEngineDisconnected(int result) {
- OnDisconnected(blimp::string::EndConnectionMessageToString(result));
-}
-
-void BlimpClientContextDelegateAndroid::OnNetworkDisconnected(int result) {
- OnDisconnected(base::UTF8ToUTF16(net::ErrorToShortString(result)));
-}
-
-void BlimpClientContextDelegateAndroid::OnDisconnected(
- const base::string16& reason) {
- ShowMessage(blimp::string::BlimpPrefix(
- l10n_util::GetStringFUTF16(IDS_BLIMP_NETWORK_DISCONNECTED, reason)));
-}
-
-void BlimpClientContextDelegateAndroid::ShowMessage(
- const base::string16& message) {
- VLOG(1) << "ShowMessage: " << message;
-}
-
-} // namespace client
-} // namespace blimp
« no previous file with comments | « blimp/client/app/android/blimp_client_context_delegate_android.h ('k') | blimp/client/app/android/blimp_contents_display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698