Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(554)

Side by Side Diff: chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.cc

Issue 830743003: Directly inline shared WebUI CSS declarations into the security and supervised user interstitials. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: review Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 l10n_util::GetStringUTF16(IDS_BOOKMARK_MANAGER_INVALID_URL)); 510 l10n_util::GetStringUTF16(IDS_BOOKMARK_MANAGER_INVALID_URL));
511 localized_strings->SetString("recent", 511 localized_strings->SetString("recent",
512 l10n_util::GetStringUTF16(IDS_BOOKMARK_MANAGER_RECENT)); 512 l10n_util::GetStringUTF16(IDS_BOOKMARK_MANAGER_RECENT));
513 localized_strings->SetString("search", 513 localized_strings->SetString("search",
514 l10n_util::GetStringUTF16(IDS_BOOKMARK_MANAGER_SEARCH)); 514 l10n_util::GetStringUTF16(IDS_BOOKMARK_MANAGER_SEARCH));
515 localized_strings->SetString("save", 515 localized_strings->SetString("save",
516 l10n_util::GetStringUTF16(IDS_SAVE)); 516 l10n_util::GetStringUTF16(IDS_SAVE));
517 localized_strings->SetString("cancel", 517 localized_strings->SetString("cancel",
518 l10n_util::GetStringUTF16(IDS_CANCEL)); 518 l10n_util::GetStringUTF16(IDS_CANCEL));
519 519
520 webui::SetFontAndTextDirection(localized_strings); 520 webui::SetTextDirection(localized_strings);
521 521
522 SetResult(localized_strings); 522 SetResult(localized_strings);
523 523
524 // This is needed because unlike the rest of these functions, this class 524 // This is needed because unlike the rest of these functions, this class
525 // inherits from AsyncFunction directly, rather than BookmarkFunction. 525 // inherits from AsyncFunction directly, rather than BookmarkFunction.
526 SendResponse(true); 526 SendResponse(true);
527 527
528 return true; 528 return true;
529 } 529 }
530 530
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 833
834 enhanced_bookmarks::EnhancedBookmarkModel* model = 834 enhanced_bookmarks::EnhancedBookmarkModel* model =
835 enhanced_bookmarks::EnhancedBookmarkModelFactory::GetForBrowserContext( 835 enhanced_bookmarks::EnhancedBookmarkModelFactory::GetForBrowserContext(
836 browser_context()); 836 browser_context());
837 model->SetVersionSuffix(params->version); 837 model->SetVersionSuffix(params->version);
838 838
839 return true; 839 return true;
840 } 840 }
841 841
842 } // namespace extensions 842 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698