| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |