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

Side by Side Diff: chrome/android/javatests/src/org/chromium/chrome/browser/firstrun/FirstRunActivityTestObserver.java

Issue 2837343002: 🔍 Reland: Don't display the search engine until First Run completes (Closed)
Patch Set: <U+1F50D> Reland: Don't display the search engine until First Run completes Created 3 years, 8 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.chromium.chrome.browser.firstrun;
6
7 import android.os.Bundle;
8
9 import org.chromium.base.test.util.CallbackHelper;
10
11 /** Records when the FirstRunActivity has progressed through various states. */
12 public class FirstRunActivityTestObserver implements FirstRunActivity.FirstRunAc tivityObserver {
13 public final CallbackHelper flowIsKnownCallback = new CallbackHelper();
14 public final CallbackHelper acceptTermsOfServiceCallback = new CallbackHelpe r();
15 public final CallbackHelper jumpToPageCallback = new CallbackHelper();
16 public final CallbackHelper updateCachedEngineCallback = new CallbackHelper( );
17 public final CallbackHelper abortFirstRunExperienceCallback = new CallbackHe lper();
18
19 public Bundle freProperties;
20
21 @Override
22 public void onFlowIsKnown(Bundle freProperties) {
23 this.freProperties = freProperties;
24 flowIsKnownCallback.notifyCalled();
25 }
26
27 @Override
28 public void onAcceptTermsOfService() {
29 acceptTermsOfServiceCallback.notifyCalled();
30 }
31
32 @Override
33 public void onJumpToPage(int position) {
34 jumpToPageCallback.notifyCalled();
35 }
36
37 @Override
38 public void onUpdateCachedEngineName() {
39 updateCachedEngineCallback.notifyCalled();
40 }
41
42 @Override
43 public void onAbortFirstRunExperience() {
44 abortFirstRunExperienceCallback.notifyCalled();
45 }
46 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698