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

Side by Side Diff: chrome/browser/ui/webui/ntp/app_launcher_handler.h

Issue 2086763002: Don't use deprecated ListValue::Append(Value*) overload. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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 (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 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 content::BrowserContext* browser_context, 76 content::BrowserContext* browser_context,
77 const extensions::Extension* extension, 77 const extensions::Extension* extension,
78 extensions::UnloadedExtensionInfo::Reason reason) override; 78 extensions::UnloadedExtensionInfo::Reason reason) override;
79 void OnExtensionUninstalled(content::BrowserContext* browser_context, 79 void OnExtensionUninstalled(content::BrowserContext* browser_context,
80 const extensions::Extension* extension, 80 const extensions::Extension* extension,
81 extensions::UninstallReason reason) override; 81 extensions::UninstallReason reason) override;
82 82
83 // Populate the given dictionary with all installed app info. 83 // Populate the given dictionary with all installed app info.
84 void FillAppDictionary(base::DictionaryValue* value); 84 void FillAppDictionary(base::DictionaryValue* value);
85 85
86 // Create a dictionary value for the given extension. May return NULL, e.g. if 86 // Create a dictionary value for the given extension. May return null, e.g. if
87 // the given extension is not an app. If non-NULL, the caller assumes 87 // the given extension is not an app.
88 // ownership of the pointer. 88 std::unique_ptr<base::DictionaryValue> GetAppInfo(
89 base::DictionaryValue* GetAppInfo(const extensions::Extension* extension); 89 const extensions::Extension* extension);
90 90
91 // Populate the given dictionary with the web store promo content. 91 // Populate the given dictionary with the web store promo content.
92 void FillPromoDictionary(base::DictionaryValue* value); 92 void FillPromoDictionary(base::DictionaryValue* value);
93 93
94 // Handles the "launchApp" message with unused |args|. 94 // Handles the "launchApp" message with unused |args|.
95 void HandleGetApps(const base::ListValue* args); 95 void HandleGetApps(const base::ListValue* args);
96 96
97 // Handles the "launchApp" message with |args| containing [extension_id, 97 // Handles the "launchApp" message with |args| containing [extension_id,
98 // source] with optional [url, disposition], |disposition| defaulting to 98 // source] with optional [url, disposition], |disposition| defaulting to
99 // CURRENT_TAB. 99 // CURRENT_TAB.
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 // when the app is added to the page (via getAppsCallback or appAdded). 229 // when the app is added to the page (via getAppsCallback or appAdded).
230 std::string highlight_app_id_; 230 std::string highlight_app_id_;
231 231
232 // Used for favicon loading tasks. 232 // Used for favicon loading tasks.
233 base::CancelableTaskTracker cancelable_task_tracker_; 233 base::CancelableTaskTracker cancelable_task_tracker_;
234 234
235 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler); 235 DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler);
236 }; 236 };
237 237
238 #endif // CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_ 238 #endif // CHROME_BROWSER_UI_WEBUI_NTP_APP_LAUNCHER_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/net_internals/net_internals_ui.cc ('k') | chrome/browser/ui/webui/ntp/app_launcher_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698