| 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/bookmarks/bookmark_manager_extension_api.h" | 5 #include "chrome/browser/bookmarks/bookmark_manager_extension_api.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
| 10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 | 502 |
| 503 bool RecordLaunchBookmarkFunction::RunImpl() { | 503 bool RecordLaunchBookmarkFunction::RunImpl() { |
| 504 bookmark_utils::RecordBookmarkLaunch(bookmark_utils::LAUNCH_MANAGER); | 504 bookmark_utils::RecordBookmarkLaunch(bookmark_utils::LAUNCH_MANAGER); |
| 505 return true; | 505 return true; |
| 506 } | 506 } |
| 507 | 507 |
| 508 bool CanOpenNewWindowsBookmarkFunction::RunImpl() { | 508 bool CanOpenNewWindowsBookmarkFunction::RunImpl() { |
| 509 bool can_open_new_windows = true; | 509 bool can_open_new_windows = true; |
| 510 | 510 |
| 511 #if defined(OS_WIN) | 511 #if defined(OS_WIN) |
| 512 if (base::win::GetMetroModule()) | 512 if (base::win::IsMetroProcess()) |
| 513 can_open_new_windows = false; | 513 can_open_new_windows = false; |
| 514 #endif // OS_WIN | 514 #endif // OS_WIN |
| 515 | 515 |
| 516 result_.reset(Value::CreateBooleanValue(can_open_new_windows)); | 516 result_.reset(Value::CreateBooleanValue(can_open_new_windows)); |
| 517 return true; | 517 return true; |
| 518 } | 518 } |
| OLD | NEW |