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

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

Issue 120983002: Update some uses of UTF conversions in chrome/browser to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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/app_search_provider.h" 5 #include "chrome/browser/ui/app_list/search/app_search_provider.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/chrome_notification_types.h" 10 #include "chrome/browser/chrome_notification_types.h"
11 #include "chrome/browser/extensions/extension_service.h" 11 #include "chrome/browser/extensions/extension_service.h"
12 #include "chrome/browser/extensions/extension_system_factory.h" 12 #include "chrome/browser/extensions/extension_system_factory.h"
13 #include "chrome/browser/extensions/extension_util.h" 13 #include "chrome/browser/extensions/extension_util.h"
14 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/ui/app_list/search/app_result.h" 15 #include "chrome/browser/ui/app_list/search/app_result.h"
16 #include "chrome/browser/ui/app_list/search/tokenized_string.h" 16 #include "chrome/browser/ui/app_list/search/tokenized_string.h"
17 #include "chrome/browser/ui/app_list/search/tokenized_string_match.h" 17 #include "chrome/browser/ui/app_list/search/tokenized_string_match.h"
18 #include "content/public/browser/notification_details.h" 18 #include "content/public/browser/notification_details.h"
19 #include "content/public/browser/notification_source.h" 19 #include "content/public/browser/notification_source.h"
20 #include "extensions/common/extension.h" 20 #include "extensions/common/extension.h"
21 #include "extensions/common/extension_set.h" 21 #include "extensions/common/extension_set.h"
22 22
23 namespace app_list { 23 namespace app_list {
24 24
25 class AppSearchProvider::App { 25 class AppSearchProvider::App {
26 public: 26 public:
27 explicit App(const extensions::Extension* extension) 27 explicit App(const extensions::Extension* extension)
28 : app_id_(extension->id()), 28 : app_id_(extension->id()),
29 indexed_name_(UTF8ToUTF16(extension->name())) { 29 indexed_name_(base::UTF8ToUTF16(extension->name())) {
30 } 30 }
31 ~App() {} 31 ~App() {}
32 32
33 const std::string& app_id() const { return app_id_; } 33 const std::string& app_id() const { return app_id_; }
34 const TokenizedString& indexed_name() const { return indexed_name_; } 34 const TokenizedString& indexed_name() const { return indexed_name_; }
35 35
36 private: 36 private:
37 const std::string app_id_; 37 const std::string app_id_;
38 TokenizedString indexed_name_; 38 TokenizedString indexed_name_;
39 39
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 AddApps(extension_service->terminated_extensions(), extension_service); 105 AddApps(extension_service->terminated_extensions(), extension_service);
106 } 106 }
107 107
108 void AppSearchProvider::Observe(int type, 108 void AppSearchProvider::Observe(int type,
109 const content::NotificationSource& source, 109 const content::NotificationSource& source,
110 const content::NotificationDetails& detaila) { 110 const content::NotificationDetails& detaila) {
111 RefreshApps(); 111 RefreshApps();
112 } 112 }
113 113
114 } // namespace app_list 114 } // namespace app_list
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698