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 "chrome/browser/ui/metro_pin_tab_helper_win.h" | 5 #include "chrome/browser/ui/metro_pin_tab_helper_win.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/file_util.h" | |
12 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/files/file_util.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/ref_counted_memory.h" | 15 #include "base/memory/ref_counted_memory.h" |
16 #include "base/metrics/histogram.h" | 16 #include "base/metrics/histogram.h" |
17 #include "base/path_service.h" | 17 #include "base/path_service.h" |
18 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
19 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
20 #include "base/win/metro.h" | 20 #include "base/win/metro.h" |
21 #include "chrome/browser/favicon/favicon_tab_helper.h" | 21 #include "chrome/browser/favicon/favicon_tab_helper.h" |
22 #include "chrome/common/chrome_paths.h" | 22 #include "chrome/common/chrome_paths.h" |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 | 448 |
449 GURL url = web_contents()->GetURL(); | 449 GURL url = web_contents()->GetURL(); |
450 base::string16 tile_id = GenerateTileId(base::UTF8ToUTF16(url.spec())); | 450 base::string16 tile_id = GenerateTileId(base::UTF8ToUTF16(url.spec())); |
451 metro_un_pin_from_start_screen(tile_id, | 451 metro_un_pin_from_start_screen(tile_id, |
452 base::Bind(&PinPageReportUmaCallback)); | 452 base::Bind(&PinPageReportUmaCallback)); |
453 } | 453 } |
454 | 454 |
455 void MetroPinTabHelper::FaviconDownloaderFinished() { | 455 void MetroPinTabHelper::FaviconDownloaderFinished() { |
456 favicon_chooser_.reset(); | 456 favicon_chooser_.reset(); |
457 } | 457 } |
OLD | NEW |