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

Unified Diff: ui/base/clipboard/clipboard_android.h

Issue 2832263002: Clipboard Android - Store and Read Last Modified Time from Prefs (Closed)
Patch Set: revert omnibox_field_trial_code, rebase 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 side-by-side diff with in-line comments
Download patch
Index: ui/base/clipboard/clipboard_android.h
diff --git a/ui/base/clipboard/clipboard_android.h b/ui/base/clipboard/clipboard_android.h
index 8589e9c75587b2936c5ae3c27c9b2dd40b0e7cf7..0c586bfe678013c53fafe3d9e6f61b587120f653 100644
--- a/ui/base/clipboard/clipboard_android.h
+++ b/ui/base/clipboard/clipboard_android.h
@@ -15,10 +15,22 @@
#include "base/macros.h"
#include "base/time/time.h"
+class PrefService;
+class PrefRegistrySimple;
+
namespace ui {
class ClipboardAndroid : public Clipboard {
public:
+ // Exported only so
+ // chrome/browser/android/preferences/browser_prefs_android.cc
Bernhard Bauer 2017/04/25 13:30:06 Nit: this comment seems like a bit of a layering v
Mark P 2017/04/25 18:51:21 In retrospect, I agree. This isn't worth a commen
+ // can call it.
+ UI_BASE_EXPORT static void RegisterPrefs(PrefRegistrySimple* registry);
+
+ // Called during startup when local state is available to store a pointer to
+ // local_state in order to read and update prefs.
+ UI_BASE_EXPORT void SetLocalState(PrefService* local_state);
+
// Called by Java when the Java Clipboard is notified that the clipboard has
// changed.
void OnPrimaryClipChanged(JNIEnv* env,

Powered by Google App Engine
This is Rietveld 408576698