Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: chrome/browser/ui/app_list/app_list_syncable_service.cc

Issue 853743002: First pass at fixing guest browser cookies issue. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Delete the Profile Manager. Guest Profile doesn't write to autocomplete/history. Views still needs … Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_manager.cc ('k') | chrome/browser/ui/app_list/model_pref_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698