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

Side by Side Diff: chrome/browser/ui/cocoa/applescript/bookmark_item_applescript.mm

Issue 5606002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #import "chrome/browser/ui/cocoa/applescript/bookmark_item_applescript.h" 5 #import "chrome/browser/ui/cocoa/applescript/bookmark_item_applescript.h"
6 6
7 #include "base/sys_string_conversions.h" 7 #include "base/sys_string_conversions.h"
8 #include "chrome/browser/bookmarks/bookmark_model.h" 8 #include "chrome/browser/bookmarks/bookmark_model.h"
9 #include "chrome/browser/profile_manager.h" 9 #include "chrome/browser/profiles/profile_manager.h"
10 #import "chrome/browser/ui/cocoa/applescript/error_applescript.h" 10 #import "chrome/browser/ui/cocoa/applescript/error_applescript.h"
11 11
12 @interface BookmarkItemAppleScript() 12 @interface BookmarkItemAppleScript()
13 @property (nonatomic, copy) NSString* tempURL; 13 @property (nonatomic, copy) NSString* tempURL;
14 @end 14 @end
15 15
16 @implementation BookmarkItemAppleScript 16 @implementation BookmarkItemAppleScript
17 17
18 @synthesize tempURL = tempURL_; 18 @synthesize tempURL = tempURL_;
19 19
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 GURL url(base::SysNSStringToUTF8(aURL)); 57 GURL url(base::SysNSStringToUTF8(aURL));
58 if (!url.is_valid()) { 58 if (!url.is_valid()) {
59 AppleScript::SetError(AppleScript::errInvalidURL); 59 AppleScript::SetError(AppleScript::errInvalidURL);
60 return; 60 return;
61 } 61 }
62 62
63 model->SetURL(bookmarkNode_, url); 63 model->SetURL(bookmarkNode_, url);
64 } 64 }
65 65
66 @end 66 @end
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_navigator_browsertest.cc ('k') | chrome/browser/ui/cocoa/applescript/bookmark_node_applescript.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698