| 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/extensions/api/bookmark_manager_private/bookmark_manage
r_private_api.h" | 5 #include "chrome/browser/extensions/api/bookmark_manager_private/bookmark_manage
r_private_api.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/memory/linked_ptr.h" | 10 #include "base/memory/linked_ptr.h" |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 l10n_util::GetStringUTF16(IDS_BOOKMARK_MANAGER_INVALID_URL)); | 511 l10n_util::GetStringUTF16(IDS_BOOKMARK_MANAGER_INVALID_URL)); |
| 512 localized_strings->SetString("recent", | 512 localized_strings->SetString("recent", |
| 513 l10n_util::GetStringUTF16(IDS_BOOKMARK_MANAGER_RECENT)); | 513 l10n_util::GetStringUTF16(IDS_BOOKMARK_MANAGER_RECENT)); |
| 514 localized_strings->SetString("search", | 514 localized_strings->SetString("search", |
| 515 l10n_util::GetStringUTF16(IDS_BOOKMARK_MANAGER_SEARCH)); | 515 l10n_util::GetStringUTF16(IDS_BOOKMARK_MANAGER_SEARCH)); |
| 516 localized_strings->SetString("save", | 516 localized_strings->SetString("save", |
| 517 l10n_util::GetStringUTF16(IDS_SAVE)); | 517 l10n_util::GetStringUTF16(IDS_SAVE)); |
| 518 localized_strings->SetString("cancel", | 518 localized_strings->SetString("cancel", |
| 519 l10n_util::GetStringUTF16(IDS_CANCEL)); | 519 l10n_util::GetStringUTF16(IDS_CANCEL)); |
| 520 | 520 |
| 521 webui::SetFontAndTextDirection(localized_strings); | 521 webui::SetTextDirection(localized_strings); |
| 522 | 522 |
| 523 SetResult(localized_strings); | 523 SetResult(localized_strings); |
| 524 | 524 |
| 525 // This is needed because unlike the rest of these functions, this class | 525 // This is needed because unlike the rest of these functions, this class |
| 526 // inherits from AsyncFunction directly, rather than BookmarkFunction. | 526 // inherits from AsyncFunction directly, rather than BookmarkFunction. |
| 527 SendResponse(true); | 527 SendResponse(true); |
| 528 | 528 |
| 529 return true; | 529 return true; |
| 530 } | 530 } |
| 531 | 531 |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 834 | 834 |
| 835 enhanced_bookmarks::EnhancedBookmarkModel* model = | 835 enhanced_bookmarks::EnhancedBookmarkModel* model = |
| 836 enhanced_bookmarks::EnhancedBookmarkModelFactory::GetForBrowserContext( | 836 enhanced_bookmarks::EnhancedBookmarkModelFactory::GetForBrowserContext( |
| 837 browser_context()); | 837 browser_context()); |
| 838 model->SetVersionSuffix(params->version); | 838 model->SetVersionSuffix(params->version); |
| 839 | 839 |
| 840 return true; | 840 return true; |
| 841 } | 841 } |
| 842 | 842 |
| 843 } // namespace extensions | 843 } // namespace extensions |
| OLD | NEW |