| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/jumplist_updater_win.h" | 5 #include "chrome/browser/win/jumplist_updater.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <propkey.h> | 8 #include <propkey.h> |
| 9 #include <shobjidl.h> | 9 #include <shobjidl.h> |
| 10 | 10 |
| 11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
| 14 #include "base/win/win_util.h" | 14 #include "base/win/win_util.h" |
| 15 #include "base/win/windows_version.h" | 15 #include "base/win/windows_version.h" |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 // It seems the ICustomDestinationList::AppendCategory() function just | 235 // It seems the ICustomDestinationList::AppendCategory() function just |
| 236 // replaces all items in the given category with the ones in the new list. | 236 // replaces all items in the given category with the ones in the new list. |
| 237 base::win::ScopedComPtr<IObjectArray> object_array; | 237 base::win::ScopedComPtr<IObjectArray> object_array; |
| 238 result = collection.QueryInterface(object_array.Receive()); | 238 result = collection.QueryInterface(object_array.Receive()); |
| 239 if (FAILED(result)) | 239 if (FAILED(result)) |
| 240 return false; | 240 return false; |
| 241 | 241 |
| 242 return SUCCEEDED(destination_list_->AppendCategory(category_name.c_str(), | 242 return SUCCEEDED(destination_list_->AppendCategory(category_name.c_str(), |
| 243 object_array.get())); | 243 object_array.get())); |
| 244 } | 244 } |
| OLD | NEW |