Chromium Code Reviews| Index: chrome/browser/sync/glue/session_model_associator.h |
| diff --git a/chrome/browser/sync/glue/session_model_associator.h b/chrome/browser/sync/glue/session_model_associator.h |
| index 0a61fa12d32162b983e5b5885f1fef6f0805b5ed..28dfa2256491f429d850e2f879b7f060c8deddca 100644 |
| --- a/chrome/browser/sync/glue/session_model_associator.h |
| +++ b/chrome/browser/sync/glue/session_model_associator.h |
| @@ -233,6 +233,13 @@ class SessionModelAssociator |
| bool GetSyncedFaviconForPageURL(const std::string& url, |
| std::string* png_favicon) const; |
| +#if defined(UNIT_TEST) |
|
akalin
2012/11/10 21:47:40
sorry, i wasn't clear -- i still want the "#if def
kuan
2012/11/11 00:17:22
Done.
|
| + // Sets the machine tag for testing. |
|
akalin
2012/11/10 21:47:40
you can remove the comment -- i think the function
kuan
2012/11/11 00:17:22
Done.
|
| + void SetCurrentMachineTagForTesting(const std::string& machine_tag) { |
| + current_machine_tag_ = machine_tag; |
| + } |
| +#endif // defined(UNIT_TEST) |
| + |
| private: |
| friend class SyncSessionModelAssociatorTest; |
| FRIEND_TEST_ALL_PREFIXES(ProfileSyncServiceSessionTest, WriteSessionToNode); |