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

Side by Side Diff: chrome/browser/ui/app_list/search/webstore/webstore_cache.cc

Issue 23874015: Implement people search. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | Annotate | Revision Log
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/search/webstore_cache.h" 5 #include "chrome/browser/ui/app_list/search/webstore/webstore_cache.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 8
9 namespace app_list { 9 namespace app_list {
10 namespace { 10 namespace {
11 11
12 const int kWebstoreCacheMaxSize = 100; 12 const int kWebstoreCacheMaxSize = 100;
13 const int kWebstoreCacheTimeLimitInMinutes = 1; 13 const int kWebstoreCacheTimeLimitInMinutes = 1;
14 14
15 } // namespace 15 } // namespace
(...skipping 22 matching lines...) Expand all
38 return NULL; 38 return NULL;
39 } 39 }
40 40
41 void WebstoreCache::Put(const std::string& query, 41 void WebstoreCache::Put(const std::string& query,
42 scoped_ptr<base::DictionaryValue> result) { 42 scoped_ptr<base::DictionaryValue> result) {
43 if (result) 43 if (result)
44 cache_.Put(query, std::make_pair(base::Time::Now(), result.release())); 44 cache_.Put(query, std::make_pair(base::Time::Now(), result.release()));
45 } 45 }
46 46
47 } // namespace app_list 47 } // namespace app_list
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698