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

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

Issue 2832263002: Clipboard Android - Store and Read Last Modified Time from Prefs (Closed)
Patch Set: comment cleanup 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..58d43c147065257af570f23203f1b42a87117f71 100644
--- a/ui/base/clipboard/clipboard_android.h
+++ b/ui/base/clipboard/clipboard_android.h
@@ -15,10 +15,21 @@
#include "base/macros.h"
#include "base/time/time.h"
+class PrefService;
+class PrefRegistrySimple;
+
namespace ui {
-class ClipboardAndroid : public Clipboard {
+// Exported only so chrome/browser/android/preferences/browser_prefs_android.cc
+// can call RegisterPrefs().
+class UI_BASE_EXPORT ClipboardAndroid : public Clipboard {
public:
+ static void RegisterPrefs(PrefRegistrySimple* registry);
dcheng 2017/04/22 01:43:01 Could just export this one helper too.
Mark P 2017/04/24 17:33:26 Ah, I didn't know I could export individual functi
+
+ // Called during startup when local state is available to store a pointer to
+ // local_state in order to read and update prefs.
+ 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