|
Rename GCMDriver::GetInstanceIDHandler to avoid misuse
GCMDriver::GetInstanceIDHandler and the GCMDriverDesktop's
implementations of the InstanceIDHandler methods are public.
This broke the encapsulation model of instance_id::InstanceID, which
assumes it can safely cache the results of InstanceIDHandler methods,
as it is the only class that can modify Instance IDs.
This patch renames GCMDriver::GetInstanceIDHandler to
GCMDriver::GetInstanceIDHandlerInternal as a warning, and adds a
comment that it should only be used by InstanceID (and tests).
BUG= 589461
Committed: https://crrev.com/54a3e1481e43a7e4debb0ec204a078d1e78d25c6
Cr-Commit-Position: refs/heads/master@{#380692}
Total comments: 8
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+108 lines, -110 lines) |
Patch |
 |
M |
components/gcm_driver/fake_gcm_driver.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/gcm_driver/fake_gcm_driver.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/gcm_driver/gcm_driver.h
|
View
|
1
2
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/gcm_driver/gcm_driver_android.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/gcm_driver/gcm_driver_android.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/gcm_driver/gcm_driver_desktop.h
|
View
|
1
2
3
|
3 chunks |
+19 lines, -19 lines |
0 comments
|
Download
|
 |
M |
components/gcm_driver/gcm_driver_desktop.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/gcm_driver/gcm_driver_desktop_unittest.cc
|
View
|
1
2
|
5 chunks |
+29 lines, -19 lines |
0 comments
|
Download
|
 |
M |
components/gcm_driver/instance_id/fake_gcm_driver_for_instance_id.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/gcm_driver/instance_id/fake_gcm_driver_for_instance_id.cc
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/gcm_driver/instance_id/instance_id.h
|
View
|
1
2
3
|
3 chunks |
+11 lines, -5 lines |
0 comments
|
Download
|
 |
M |
components/gcm_driver/instance_id/instance_id.cc
|
View
|
1
2
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/gcm_driver/instance_id/instance_id_android.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/gcm_driver/instance_id/instance_id_android.cc
|
View
|
1
2
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
components/gcm_driver/instance_id/instance_id_driver.h
|
View
|
1
2
3
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/gcm_driver/instance_id/instance_id_driver.cc
|
View
|
1
2
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/gcm_driver/instance_id/instance_id_impl.h
|
View
|
1
2
3
|
4 chunks |
+1 line, -6 lines |
0 comments
|
Download
|
 |
M |
components/gcm_driver/instance_id/instance_id_impl.cc
|
View
|
1
2
|
7 chunks |
+20 lines, -42 lines |
0 comments
|
Download
|
Total messages: 15 (7 generated)
|