Lines Matching full:profile
20 #include "chrome/browser/profiles/profile.h"
61 explicit NewBrowserPageNavigator(Profile* profile)
62 : profile_(profile),
77 Profile* profile = (disposition == OFF_THE_RECORD) ?
79 browser_ = Browser::Create(profile);
87 Profile* profile_;
224 int BookmarkDragOperation(Profile* profile, const BookmarkNode* node) {
226 if (!profile->GetPrefs()->GetBoolean(prefs::kEditBookmarksEnabled))
235 int BookmarkDropOperation(Profile* profile,
240 if (data.IsFromProfile(profile) && data.size() > 1)
244 if (!bookmark_utils::IsValidDropLocation(profile, data, parent, index))
247 if (data.GetFirstNode(profile)) {
248 // User is dragging from this profile: move.
257 int PerformBookmarkDrop(Profile* profile,
261 BookmarkModel* model = profile->GetBookmarkModel();
262 if (data.IsFromProfile(profile)) {
264 data.GetNodes(profile);
266 // Drag from same profile. Move nodes.
275 // Dropping a folder from different profile. Always accept.
280 bool IsValidDropLocation(Profile* profile,
292 if (data.IsFromProfile(profile)) {
293 std::vector<const BookmarkNode*> nodes = data.GetNodes(profile);
309 // From the same profile, always accept.
327 void DragBookmarks(Profile* profile,
336 drag_data.Write(profile, &data);
355 bookmark_pasteboard_helper_mac::StartDrag(profile, nodes, view);
358 BookmarkDrag::BeginDrag(profile, nodes);
363 Profile* profile,
370 NewBrowserPageNavigator navigator_impl(profile);
373 BrowserList::FindBrowserWithType(profile, Browser::TYPE_NORMAL, false);
391 Profile* profile,
397 OpenAll(parent, profile, navigator, nodes, initial_disposition);
609 void ToggleWhenVisible(Profile* profile) {
610 PrefService* prefs = profile->GetPrefs();
618 Source<Profile> source(profile);