Commit c85ae02c authored by Julie Jeongeun Kim's avatar Julie Jeongeun Kim Committed by Commit Bot

[s13n] Remove merge_session_observer_bridge.mm/h

This CL removes dead files, merge_session_observer_bridge.mm/h.

Bug: 926889
Change-Id: Ib66ed739e254bdac1be7b3019b270999c0e77fc4
Reviewed-on: https://chromium-review.googlesource.com/c/1447403Reviewed-by: default avatarMihai Sardarescu <msarda@chromium.org>
Reviewed-by: default avatarLowell Manners <lowell@chromium.org>
Reviewed-by: default avatarJérôme Lebel <jlebel@chromium.org>
Commit-Queue: Julie Jeongeun Kim <jkim@igalia.com>
Cr-Commit-Position: refs/heads/master@{#628160}
parent 4e0e560d
...@@ -8,8 +8,6 @@ source_set("browser") { ...@@ -8,8 +8,6 @@ source_set("browser") {
"account_consistency_service.h", "account_consistency_service.h",
"account_consistency_service.mm", "account_consistency_service.mm",
"manage_accounts_delegate.h", "manage_accounts_delegate.h",
"merge_session_observer_bridge.h",
"merge_session_observer_bridge.mm",
"profile_oauth2_token_service_ios_delegate.h", "profile_oauth2_token_service_ios_delegate.h",
"profile_oauth2_token_service_ios_delegate.mm", "profile_oauth2_token_service_ios_delegate.mm",
"profile_oauth2_token_service_ios_provider.h", "profile_oauth2_token_service_ios_provider.h",
......
// Copyright 2014 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.
#ifndef COMPONENTS_SIGNIN_IOS_BROWSER_MERGE_SESSION_OBSERVER_BRIDGE_H_
#define COMPONENTS_SIGNIN_IOS_BROWSER_MERGE_SESSION_OBSERVER_BRIDGE_H_
#import <Foundation/Foundation.h>
#include <string>
#include "base/macros.h"
#include "components/signin/core/browser/gaia_cookie_manager_service.h"
class GoogleServiceAuthError;
@protocol MergeSessionObserverBridgeDelegate
// Informs the delegate that the merge session operation for |account_id| has
// finished. If there was an error, it will be described in |error|.
- (void)onMergeSessionCompleted:(const std::string&)account_id
error:(const GoogleServiceAuthError&)error;
@end
// C++ class to monitor merge session status in Objective C type.
class MergeSessionObserverBridge : public GaiaCookieManagerService::Observer {
public:
MergeSessionObserverBridge(id<MergeSessionObserverBridgeDelegate> delegate,
GaiaCookieManagerService* cookie_manager_service);
~MergeSessionObserverBridge() override;
void OnAddAccountToCookieCompleted(
const std::string& account_id,
const GoogleServiceAuthError& error) override;
private:
__weak id<MergeSessionObserverBridgeDelegate> delegate_;
GaiaCookieManagerService* cookie_manager_service_;
DISALLOW_COPY_AND_ASSIGN(MergeSessionObserverBridge);
};
#endif // COMPONENTS_SIGNIN_IOS_BROWSER_MERGE_SESSION_OBSERVER_BRIDGE_H_
// Copyright 2014 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 "components/signin/ios/browser/merge_session_observer_bridge.h"
#include "base/logging.h"
#include "google_apis/gaia/google_service_auth_error.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
MergeSessionObserverBridge::MergeSessionObserverBridge(
id<MergeSessionObserverBridgeDelegate> delegate,
GaiaCookieManagerService* cookie_manager_service)
: delegate_(delegate), cookie_manager_service_(cookie_manager_service) {
DCHECK(delegate);
DCHECK(cookie_manager_service);
cookie_manager_service_->AddObserver(this);
}
MergeSessionObserverBridge::~MergeSessionObserverBridge() {
cookie_manager_service_->RemoveObserver(this);
}
void MergeSessionObserverBridge::OnAddAccountToCookieCompleted(
const std::string& account_id,
const GoogleServiceAuthError& error) {
[delegate_ onMergeSessionCompleted:account_id error:error];
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment