OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_SYNC_GLUE_THEME_UTIL_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_THEME_UTIL_H_ |
6 #define CHROME_BROWSER_SYNC_GLUE_THEME_UTIL_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_THEME_UTIL_H_ |
7 #pragma once | |
8 | 7 |
9 class Profile; | 8 class Profile; |
10 | 9 |
11 namespace extensions { | 10 namespace extensions { |
12 class Extension; | 11 class Extension; |
13 } | 12 } |
14 | 13 |
15 namespace sync_pb { | 14 namespace sync_pb { |
16 class ThemeSpecifics; | 15 class ThemeSpecifics; |
17 } // sync_pb | 16 } // sync_pb |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // Like SetCurrentThemeFromThemeSpecifics() except that in the case where | 56 // Like SetCurrentThemeFromThemeSpecifics() except that in the case where |
58 // |theme_specifics| uses the default theme and |profile| does not, the local | 57 // |theme_specifics| uses the default theme and |profile| does not, the local |
59 // data "wins" against the server's and |theme_specifics| is updated with the | 58 // data "wins" against the server's and |theme_specifics| is updated with the |
60 // custom theme. Returns true iff |theme_specifics| is updated. | 59 // custom theme. Returns true iff |theme_specifics| is updated. |
61 bool UpdateThemeSpecificsOrSetCurrentThemeIfNecessary( | 60 bool UpdateThemeSpecificsOrSetCurrentThemeIfNecessary( |
62 Profile* profile, sync_pb::ThemeSpecifics* theme_specifics); | 61 Profile* profile, sync_pb::ThemeSpecifics* theme_specifics); |
63 | 62 |
64 } // namespace browser_sync | 63 } // namespace browser_sync |
65 | 64 |
66 #endif // CHROME_BROWSER_SYNC_GLUE_THEME_UTIL_H_ | 65 #endif // CHROME_BROWSER_SYNC_GLUE_THEME_UTIL_H_ |
OLD | NEW |