Commit cf629e19 authored by zhaoyangli's avatar zhaoyangli Committed by Commit Bot

Extract unified consent constants target.

Preparing for SigninEarlGreyUI and SigninEarlGreyUtils EG2 migrations.

Bug: 922813, 1015907
Change-Id: I47e4678e40f1820b22938463c5a791c04a662f3c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1884286
Commit-Queue: Zhaoyang Li <zhaoyangli@chromium.org>
Reviewed-by: default avatarRohit Rao <rohitrao@chromium.org>
Reviewed-by: default avatarJérôme Lebel <jlebel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#710479}
parent bceb8139
......@@ -22,6 +22,7 @@
#include "ios/chrome/browser/signin/identity_manager_factory.h"
#include "ios/chrome/browser/sync/consent_auditor_factory.h"
#include "ios/chrome/browser/sync/ios_user_event_service_factory.h"
#import "ios/chrome/browser/ui/authentication/unified_consent/unified_consent_constants.h"
#import "ios/chrome/browser/ui/authentication/unified_consent/unified_consent_view_controller.h"
#import "ios/chrome/browser/ui/util/transparent_link_button.h"
#include "ios/chrome/browser/unified_consent/unified_consent_service_factory.h"
......
......@@ -10,6 +10,7 @@
#import "ios/chrome/browser/ui/authentication/signin_earlgrey_utils.h"
#import "ios/chrome/browser/ui/authentication/unified_consent/identity_chooser/identity_chooser_cell.h"
#import "ios/chrome/browser/ui/authentication/unified_consent/identity_picker_view.h"
#import "ios/chrome/browser/ui/authentication/unified_consent/unified_consent_constants.h"
#import "ios/chrome/browser/ui/authentication/unified_consent/unified_consent_view_controller.h"
#import "ios/chrome/browser/ui/signin_interaction/signin_interaction_controller_egtest_util.h"
#import "ios/chrome/browser/ui/util/transparent_link_button.h"
......
......@@ -48,4 +48,16 @@ source_set("unified_consent_ui") {
"//ios/third_party/material_components_ios",
"//ui/base",
]
public_deps = [
":constants",
]
}
source_set("constants") {
configs += [ "//build/config/compiler:enable_arc" ]
sources = [
"unified_consent_constants.h",
"unified_consent_constants.mm",
]
libs = [ "Foundation.framework" ]
}
// Copyright 2019 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 IOS_CHROME_BROWSER_UI_AUTHENTICATION_UNIFIED_CONSENT_UNIFIED_CONSENT_CONSTANTS_H_
#define IOS_CHROME_BROWSER_UI_AUTHENTICATION_UNIFIED_CONSENT_UNIFIED_CONSENT_CONSTANTS_H_
#import <Foundation/Foundation.h>
// Accessibility identifier to open the advanced sign-in settings view.
extern NSString* const kAdvancedSigninSettingsLinkIdentifier;
// Accessibility identifier for |-UnifiedConsentViewController.view|.
extern NSString* const kUnifiedConsentScrollViewIdentifier;
#endif // IOS_CHROME_BROWSER_UI_AUTHENTICATION_UNIFIED_CONSENT_UNIFIED_CONSENT_CONSTANTS_H_
// Copyright 2019 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.
#import "ios/chrome/browser/ui/authentication/unified_consent/unified_consent_constants.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
NSString* const kAdvancedSigninSettingsLinkIdentifier =
@"AdvancedSigninSettingsLinkIdentifier";
NSString* const kUnifiedConsentScrollViewIdentifier =
@"kUnifiedConsentScrollViewIdentifier";
......@@ -9,11 +9,6 @@
#include <vector>
// Accessibility identifier to open the advanced sign-in settings view.
extern NSString* const kAdvancedSigninSettingsLinkIdentifier;
// Accessibility identifier for |-UnifiedConsentViewController.view|.
extern NSString* const kUnifiedConsentScrollViewIdentifier;
@protocol UnifiedConsentViewControllerDelegate;
// UnifiedConsentViewController is a sub view controller to ask for the user
......
......@@ -9,6 +9,7 @@
#include "ios/chrome/browser/application_context.h"
#import "ios/chrome/browser/ui/authentication/authentication_constants.h"
#import "ios/chrome/browser/ui/authentication/unified_consent/identity_picker_view.h"
#import "ios/chrome/browser/ui/authentication/unified_consent/unified_consent_constants.h"
#import "ios/chrome/browser/ui/authentication/unified_consent/unified_consent_view_controller_delegate.h"
#import "ios/chrome/browser/ui/colors/MDCPalette+CrAdditions.h"
#import "ios/chrome/browser/ui/util/label_link_controller.h"
......@@ -26,11 +27,6 @@
#error "This file requires ARC support."
#endif
NSString* const kAdvancedSigninSettingsLinkIdentifier =
@"AdvancedSigninSettingsLinkIdentifier";
NSString* const kUnifiedConsentScrollViewIdentifier =
@"kUnifiedConsentScrollViewIdentifier";
namespace {
// Vertical margin the main title and the identity picker.
......
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