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

Side by Side Diff: chrome/browser/ui/webui/md_bookmarks/md_bookmarks_ui.cc

Issue 2752173002: MD Bookmarks: Remove old bookmark data store (Closed)
Patch Set: Rebase Created 3 years, 9 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) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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/webui/md_bookmarks/md_bookmarks_ui.h" 5 #include "chrome/browser/ui/webui/md_bookmarks/md_bookmarks_ui.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 AddLocalizedString(source, "title", IDS_MD_BOOKMARK_MANAGER_TITLE); 66 AddLocalizedString(source, "title", IDS_MD_BOOKMARK_MANAGER_TITLE);
67 67
68 // Resources. 68 // Resources.
69 source->AddResourcePath("actions.html", IDR_MD_BOOKMARKS_ACTIONS_HTML); 69 source->AddResourcePath("actions.html", IDR_MD_BOOKMARKS_ACTIONS_HTML);
70 source->AddResourcePath("actions.js", IDR_MD_BOOKMARKS_ACTIONS_JS); 70 source->AddResourcePath("actions.js", IDR_MD_BOOKMARKS_ACTIONS_JS);
71 source->AddResourcePath("api_listener.html", 71 source->AddResourcePath("api_listener.html",
72 IDR_MD_BOOKMARKS_API_LISTENER_HTML); 72 IDR_MD_BOOKMARKS_API_LISTENER_HTML);
73 source->AddResourcePath("api_listener.js", IDR_MD_BOOKMARKS_API_LISTENER_JS); 73 source->AddResourcePath("api_listener.js", IDR_MD_BOOKMARKS_API_LISTENER_JS);
74 source->AddResourcePath("app.html", IDR_MD_BOOKMARKS_APP_HTML); 74 source->AddResourcePath("app.html", IDR_MD_BOOKMARKS_APP_HTML);
75 source->AddResourcePath("app.js", IDR_MD_BOOKMARKS_APP_JS); 75 source->AddResourcePath("app.js", IDR_MD_BOOKMARKS_APP_JS);
76 source->AddResourcePath("bookmarks_store.js",
77 IDR_MD_BOOKMARKS_BOOKMARKS_STORE_JS);
78 source->AddResourcePath("edit_dialog.html", 76 source->AddResourcePath("edit_dialog.html",
79 IDR_MD_BOOKMARKS_EDIT_DIALOG_HTML); 77 IDR_MD_BOOKMARKS_EDIT_DIALOG_HTML);
80 source->AddResourcePath("edit_dialog.js", IDR_MD_BOOKMARKS_EDIT_DIALOG_JS); 78 source->AddResourcePath("edit_dialog.js", IDR_MD_BOOKMARKS_EDIT_DIALOG_JS);
81 source->AddResourcePath("folder_node.html", 79 source->AddResourcePath("folder_node.html",
82 IDR_MD_BOOKMARKS_FOLDER_NODE_HTML); 80 IDR_MD_BOOKMARKS_FOLDER_NODE_HTML);
83 source->AddResourcePath("folder_node.js", 81 source->AddResourcePath("folder_node.js",
84 IDR_MD_BOOKMARKS_FOLDER_NODE_JS); 82 IDR_MD_BOOKMARKS_FOLDER_NODE_JS);
85 source->AddResourcePath("icons.html", IDR_MD_BOOKMARKS_ICONS_HTML); 83 source->AddResourcePath("icons.html", IDR_MD_BOOKMARKS_ICONS_HTML);
86 source->AddResourcePath("item.html", IDR_MD_BOOKMARKS_ITEM_HTML); 84 source->AddResourcePath("item.html", IDR_MD_BOOKMARKS_ITEM_HTML);
87 source->AddResourcePath("item.js", IDR_MD_BOOKMARKS_ITEM_JS); 85 source->AddResourcePath("item.js", IDR_MD_BOOKMARKS_ITEM_JS);
(...skipping 30 matching lines...) Expand all
118 // Set up the chrome://bookmarks/ source. 116 // Set up the chrome://bookmarks/ source.
119 Profile* profile = Profile::FromWebUI(web_ui); 117 Profile* profile = Profile::FromWebUI(web_ui);
120 content::WebUIDataSource::Add(profile, 118 content::WebUIDataSource::Add(profile,
121 CreateMdBookmarksUIHTMLSource(profile)); 119 CreateMdBookmarksUIHTMLSource(profile));
122 } 120 }
123 121
124 // static 122 // static
125 bool MdBookmarksUI::IsEnabled() { 123 bool MdBookmarksUI::IsEnabled() {
126 return base::FeatureList::IsEnabled(features::kMaterialDesignBookmarks); 124 return base::FeatureList::IsEnabled(features::kMaterialDesignBookmarks);
127 } 125 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_bookmarks/store.js ('k') | chrome/test/data/webui/md_bookmarks/md_bookmarks_browsertest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698