Chromium Code Reviews| 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..4a222e4bd18ef2fd743409b7ad5fe71d7fd3423f 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 |
| + // can call it. |
| + static UI_BASE_EXPORT void RegisterPrefs(PrefRegistrySimple* registry); |
|
Ted C
2017/04/24 20:45:48
I would have expected static to come after the UI_
Mark P
2017/04/24 22:19:56
Acknowledged. Swapped the order simply because th
|
| + |
| + // 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); |
|
Ted C
2017/04/24 20:45:48
local state is not something that is super easy to
Mark P
2017/04/24 22:19:56
I understand SetPrefService seems clearer and prob
dcheng
2017/04/25 13:17:12
PrefService does seem profile-specific to me, whil
Mark P
2017/04/25 18:51:21
Left function name as-is as previously discussed.
|
| + |
| // Called by Java when the Java Clipboard is notified that the clipboard has |
| // changed. |
| void OnPrimaryClipChanged(JNIEnv* env, |