| OLD | NEW |
| 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 "stdafx.h" | 5 #include "stdafx.h" |
| 6 #include "secondary_tile.h" | 6 #include "secondary_tile.h" |
| 7 | 7 |
| 8 #include <windows.ui.startscreen.h> | 8 #include <windows.ui.startscreen.h> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
| 13 #include "googleurl/src/gurl.h" | 13 #include "url/gurl.h" |
| 14 #include "win8/metro_driver/chrome_app_view.h" | 14 #include "win8/metro_driver/chrome_app_view.h" |
| 15 #include "win8/metro_driver/winrt_utils.h" | 15 #include "win8/metro_driver/winrt_utils.h" |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 using base::win::MetroPinUmaResultCallback; | 19 using base::win::MetroPinUmaResultCallback; |
| 20 | 20 |
| 21 // Callback for asynchronous pin requests. | 21 // Callback for asynchronous pin requests. |
| 22 class TileRequestCompleter { | 22 class TileRequestCompleter { |
| 23 public: | 23 public: |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 const base::FilePath& logo_path, | 219 const base::FilePath& logo_path, |
| 220 const MetroPinUmaResultCallback& callback) { | 220 const MetroPinUmaResultCallback& callback) { |
| 221 globals.appview_msg_loop->PostTask( | 221 globals.appview_msg_loop->PostTask( |
| 222 FROM_HERE, base::Bind(&CreateTileOnStartScreen, | 222 FROM_HERE, base::Bind(&CreateTileOnStartScreen, |
| 223 tile_id, | 223 tile_id, |
| 224 title, | 224 title, |
| 225 url, | 225 url, |
| 226 logo_path, | 226 logo_path, |
| 227 callback)); | 227 callback)); |
| 228 } | 228 } |
| OLD | NEW |