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

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

Issue 2832263002: Clipboard Android - Store and Read Last Modified Time from Prefs (Closed)
Patch Set: everyone's comments 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..817813773faf821948b039ad0075d8af143c59bb 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 {
public:
+ 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. Local state is a
+ // place to store data locally independent of a particular profile; it
+ // uses the PrefService interface.
+ 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