| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/strings/sys_string_conversions.h" | 7 #include "base/strings/sys_string_conversions.h" |
| 8 #include "chrome/browser/profiles/profile_manager.h" | 8 #include "chrome/browser/profiles/profile_manager.h" |
| 9 #import "chrome/browser/ui/cocoa/applescript/error_applescript.h" | 9 #import "chrome/browser/ui/cocoa/applescript/error_applescript.h" |
| 10 #include "components/bookmarks/core/browser/bookmark_model.h" | 10 #include "components/bookmarks/browser/bookmark_model.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 |
| 20 - (id)init { | 20 - (id)init { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 GURL url(base::SysNSStringToUTF8(aURL)); | 56 GURL url(base::SysNSStringToUTF8(aURL)); |
| 57 if (!url.is_valid()) { | 57 if (!url.is_valid()) { |
| 58 AppleScript::SetError(AppleScript::errInvalidURL); | 58 AppleScript::SetError(AppleScript::errInvalidURL); |
| 59 return; | 59 return; |
| 60 } | 60 } |
| 61 | 61 |
| 62 model->SetURL(bookmarkNode_, url); | 62 model->SetURL(bookmarkNode_, url); |
| 63 } | 63 } |
| 64 | 64 |
| 65 @end | 65 @end |
| OLD | NEW |