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

Side by Side Diff: ui/app_list/app_list_model.cc

Issue 23766018: Based off 20656002 Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: compiles on mac, tests "pass", but Menu is wrong Created 7 years, 3 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
« no previous file with comments | « ui/app_list/app_list_model.h ('k') | ui/app_list/cocoa/app_list_view_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "ui/app_list/app_list_model.h" 5 #include "ui/app_list/app_list_model.h"
6 6
7 #include "ui/app_list/app_list_item_model.h" 7 #include "ui/app_list/app_list_item_model.h"
8 #include "ui/app_list/app_list_model_observer.h" 8 #include "ui/app_list/app_list_model_observer.h"
9 #include "ui/app_list/search_box_model.h" 9 #include "ui/app_list/search_box_model.h"
10 #include "ui/app_list/search_result.h" 10 #include "ui/app_list/search_result.h"
11 11
12 namespace app_list { 12 namespace app_list {
13 13
14 AppListModel::User::User() {}
15 AppListModel::User::~User() {}
16
14 AppListModel::AppListModel() 17 AppListModel::AppListModel()
15 : apps_(new Apps), 18 : apps_(new Apps),
16 search_box_(new SearchBoxModel), 19 search_box_(new SearchBoxModel),
17 results_(new SearchResults), 20 results_(new SearchResults),
18 signed_in_(false), 21 signed_in_(false),
19 status_(STATUS_NORMAL) { 22 status_(STATUS_NORMAL) {
20 } 23 }
21 24
22 AppListModel::~AppListModel() { 25 AppListModel::~AppListModel() {
23 STLDeleteElements(&users_); 26 STLDeleteElements(&users_);
(...skipping 29 matching lines...) Expand all
53 if (signed_in_ == signed_in) 56 if (signed_in_ == signed_in)
54 return; 57 return;
55 58
56 signed_in_ = signed_in; 59 signed_in_ = signed_in;
57 FOR_EACH_OBSERVER(AppListModelObserver, 60 FOR_EACH_OBSERVER(AppListModelObserver,
58 observers_, 61 observers_,
59 OnAppListModelSigninStatusChanged()); 62 OnAppListModelSigninStatusChanged());
60 } 63 }
61 64
62 } // namespace app_list 65 } // namespace app_list
OLDNEW
« no previous file with comments | « ui/app_list/app_list_model.h ('k') | ui/app_list/cocoa/app_list_view_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698