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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/IntentHelper.java

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 package org.chromium.chrome.browser; 5 package org.chromium.chrome.browser;
6 6
7 import android.accounts.Account; 7 import android.accounts.Account;
8 import android.content.Context; 8 import android.content.Context;
9 import android.content.Intent; 9 import android.content.Intent;
10 import android.net.Uri; 10 import android.net.Uri;
11 import android.text.Html; 11 import android.text.Html;
12 import android.text.TextUtils; 12 import android.text.TextUtils;
13 import android.util.Patterns; 13 import android.util.Patterns;
14 14
15 import org.chromium.base.ContentUriUtils; 15 import org.chromium.base.ContentUriUtils;
16 import org.chromium.base.annotations.CalledByNative; 16 import org.chromium.base.annotations.CalledByNative;
17 import org.chromium.sync.signin.AccountManagerHelper; 17 import org.chromium.components.sync.signin.AccountManagerHelper;
18 18
19 import java.io.File; 19 import java.io.File;
20 20
21 /** 21 /**
22 * Helper for issuing intents to the android framework. 22 * Helper for issuing intents to the android framework.
23 */ 23 */
24 public abstract class IntentHelper { 24 public abstract class IntentHelper {
25 25
26 private IntentHelper() {} 26 private IntentHelper() {}
27 27
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 Intent intent = new Intent(android.provider.Settings.ACTION_DATE_SETTING S); 87 Intent intent = new Intent(android.provider.Settings.ACTION_DATE_SETTING S);
88 88
89 try { 89 try {
90 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 90 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
91 context.startActivity(intent); 91 context.startActivity(intent);
92 } catch (android.content.ActivityNotFoundException ex) { 92 } catch (android.content.ActivityNotFoundException ex) {
93 // If it doesn't work, avoid crashing. 93 // If it doesn't work, avoid crashing.
94 } 94 }
95 } 95 }
96 } 96 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698