OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/app_list/app_list_syncable_service.h" | 5 #include "chrome/browser/ui/app_list/app_list_syncable_service.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "chrome/browser/apps/drive/drive_app_provider.h" | 9 #include "chrome/browser/apps/drive/drive_app_provider.h" |
10 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 } | 174 } |
175 | 175 |
176 // AppListSyncableService::ModelObserver | 176 // AppListSyncableService::ModelObserver |
177 | 177 |
178 class AppListSyncableService::ModelObserver : public AppListModelObserver { | 178 class AppListSyncableService::ModelObserver : public AppListModelObserver { |
179 public: | 179 public: |
180 explicit ModelObserver(AppListSyncableService* owner) | 180 explicit ModelObserver(AppListSyncableService* owner) |
181 : owner_(owner), | 181 : owner_(owner), |
182 adding_item_(NULL) { | 182 adding_item_(NULL) { |
183 DVLOG(2) << owner_ << ": ModelObserver Added"; | 183 DVLOG(2) << owner_ << ": ModelObserver Added"; |
| 184 DLOG(ERROR) << "syncable service"; |
184 owner_->model()->AddObserver(this); | 185 owner_->model()->AddObserver(this); |
185 } | 186 } |
186 | 187 |
187 ~ModelObserver() override { | 188 ~ModelObserver() override { |
188 owner_->model()->RemoveObserver(this); | 189 owner_->model()->RemoveObserver(this); |
189 DVLOG(2) << owner_ << ": ModelObserver Removed"; | 190 DVLOG(2) << owner_ << ": ModelObserver Removed"; |
190 } | 191 } |
191 | 192 |
192 private: | 193 private: |
193 // AppListModelObserver | 194 // AppListModelObserver |
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
996 } else { | 997 } else { |
997 res += " { " + item_name + " }"; | 998 res += " { " + item_name + " }"; |
998 res += " [" + item_ordinal.ToDebugString() + "]"; | 999 res += " [" + item_ordinal.ToDebugString() + "]"; |
999 if (!parent_id.empty()) | 1000 if (!parent_id.empty()) |
1000 res += " <" + parent_id.substr(0, 8) + ">"; | 1001 res += " <" + parent_id.substr(0, 8) + ">"; |
1001 } | 1002 } |
1002 return res; | 1003 return res; |
1003 } | 1004 } |
1004 | 1005 |
1005 } // namespace app_list | 1006 } // namespace app_list |
OLD | NEW |