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

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

Issue 12313075: [sync] Upstream the Android ProfileSyncService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 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.identity;
6
7 import javax.annotation.Nullable;
8
9 /**
10 * Interface used for uniquely identifying an installation of Chrome. To get an instance you should
11 * use {@link UniqueIdentificationGeneratorFactory}.
12 */
13 public interface UniqueIdentificationGenerator {
14 /**
15 * Creates a string that uniquely identifies this installation.
16 * <p/>
17 * If there is an error in generating the string, an empty string must be re turned, not null.
18 *
19 * @param salt the salt to use for the unique ID.
20 * @return a unique ID. On failure to generate, it must return the empty str ing.
21 */
22 String getUniqueId(@Nullable String salt);
23 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698