OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/ui/webui/options2/media_galleries_handler.h" | 5 #include "chrome/browser/ui/webui/options/media_galleries_handler.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "chrome/browser/media_gallery/media_galleries_preferences.h" | 8 #include "chrome/browser/media_gallery/media_galleries_preferences.h" |
9 #include "chrome/browser/media_gallery/media_galleries_preferences_factory.h" | 9 #include "chrome/browser/media_gallery/media_galleries_preferences_factory.h" |
10 #include "chrome/browser/prefs/pref_service.h" | 10 #include "chrome/browser/prefs/pref_service.h" |
11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/browser/ui/chrome_select_file_policy.h" | 12 #include "chrome/browser/ui/chrome_select_file_policy.h" |
13 #include "chrome/common/chrome_notification_types.h" | 13 #include "chrome/common/chrome_notification_types.h" |
14 #include "chrome/common/pref_names.h" | 14 #include "chrome/common/pref_names.h" |
15 #include "content/public/browser/notification_details.h" | 15 #include "content/public/browser/notification_details.h" |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 if (type == chrome::NOTIFICATION_PREF_CHANGED && | 114 if (type == chrome::NOTIFICATION_PREF_CHANGED && |
115 *content::Details<std::string>(details).ptr() == | 115 *content::Details<std::string>(details).ptr() == |
116 prefs::kMediaGalleriesRememberedGalleries) { | 116 prefs::kMediaGalleriesRememberedGalleries) { |
117 OnGalleriesChanged(); | 117 OnGalleriesChanged(); |
118 } else { | 118 } else { |
119 NOTREACHED(); | 119 NOTREACHED(); |
120 } | 120 } |
121 } | 121 } |
122 | 122 |
123 } // namespace options | 123 } // namespace options |
OLD | NEW |