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

Side by Side Diff: win8/metro_driver/toast_notification_handler.cc

Issue 12217101: Replace FilePath with base::FilePath in some more top level directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « win8/metro_driver/secondary_tile.cc ('k') | win8/metro_driver/winrt_utils.cc » ('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 <string> 5 #include <string>
6 6
7 #include "win8/metro_driver/stdafx.h" 7 #include "win8/metro_driver/stdafx.h"
8 #include "win8/metro_driver/toast_notification_handler.h" 8 #include "win8/metro_driver/toast_notification_handler.h"
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 toast_notification_factory; 189 toast_notification_factory;
190 hr = winrt_utils::CreateActivationFactory( 190 hr = winrt_utils::CreateActivationFactory(
191 RuntimeClass_Windows_UI_Notifications_ToastNotification, 191 RuntimeClass_Windows_UI_Notifications_ToastNotification,
192 toast_notification_factory.GetAddressOf()); 192 toast_notification_factory.GetAddressOf());
193 CheckHR(hr); 193 CheckHR(hr);
194 194
195 hr = toast_notification_factory->CreateToastNotification( 195 hr = toast_notification_factory->CreateToastNotification(
196 toast_xml.Get(), &notification_); 196 toast_xml.Get(), &notification_);
197 CheckHR(hr); 197 CheckHR(hr);
198 198
199 FilePath chrome_path; 199 base::FilePath chrome_path;
200 if (!PathService::Get(base::FILE_EXE, &chrome_path)) { 200 if (!PathService::Get(base::FILE_EXE, &chrome_path)) {
201 NOTREACHED() << "Failed to get chrome exe path"; 201 NOTREACHED() << "Failed to get chrome exe path";
202 return; 202 return;
203 } 203 }
204 string16 appid = delegate_execute::GetAppId(chrome_path); 204 string16 appid = delegate_execute::GetAppId(chrome_path);
205 DVLOG(1) << "Chrome Appid is " << appid.c_str(); 205 DVLOG(1) << "Chrome Appid is " << appid.c_str();
206 206
207 // TODO(ananta) 207 // TODO(ananta)
208 // We should probably use BrowserDistribution here to get the product name. 208 // We should probably use BrowserDistribution here to get the product name.
209 mswrw::HString app_user_model_id; 209 mswrw::HString app_user_model_id;
(...skipping 30 matching lines...) Expand all
240 // etc to ChromeAppView which would enable it to ensure that the 240 // etc to ChromeAppView which would enable it to ensure that the
241 // correct tab in chrome is activated. 241 // correct tab in chrome is activated.
242 DVLOG(1) << __FUNCTION__; 242 DVLOG(1) << __FUNCTION__;
243 243
244 if (notification_info_.notification_handler) { 244 if (notification_info_.notification_handler) {
245 notification_info_.notification_handler( 245 notification_info_.notification_handler(
246 notification_info_.notification_context.c_str()); 246 notification_info_.notification_context.c_str());
247 } 247 }
248 return S_OK; 248 return S_OK;
249 } 249 }
OLDNEW
« no previous file with comments | « win8/metro_driver/secondary_tile.cc ('k') | win8/metro_driver/winrt_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698