| Index: chrome/android/java/src/org/chromium/chrome/browser/omnibox/OmniboxViewUtil.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/OmniboxViewUtil.java b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/OmniboxViewUtil.java
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fc30b4a163adec1161f8b86728254b32a4328c8a
|
| --- /dev/null
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/OmniboxViewUtil.java
|
| @@ -0,0 +1,23 @@
|
| +// 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.
|
| +
|
| +package org.chromium.chrome.browser.omnibox;
|
| +
|
| +/**
|
| + * Utilities for the Omnibox view component.
|
| + */
|
| +public class OmniboxViewUtil {
|
| +
|
| + /**
|
| + * Sanitizing the given string to be safe to paste into the omnibox.
|
| + *
|
| + * @param clipboardString The string from the clipboard.
|
| + * @return The sanitized version of the string.
|
| + */
|
| + public static String sanitizeTextForPaste(String clipboardString) {
|
| + return nativeSanitizeTextForPaste(clipboardString);
|
| + }
|
| +
|
| + private static native String nativeSanitizeTextForPaste(String clipboardString);
|
| +}
|
|
|